24 lines
483 B
Plaintext
24 lines
483 B
Plaintext
#!/bin/busybox ash
|
|
case "$ACTION" in
|
|
post)
|
|
# Check if busybox is in the system
|
|
if command -v busybox >/dev/null 2>&1; then
|
|
|
|
for i in $(busybox --list-full); do
|
|
|
|
if [ -e "/$i" ]; then
|
|
busybox echo "Error: $i already exists."
|
|
else
|
|
busybox echo "Creating symlink from /bin/busybox to $i"
|
|
busybox ln -s "/usr/bin/busybox" "/$i"
|
|
fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
busybox echo "Busybox is not installed or not in the system."
|
|
|
|
fi
|
|
esac
|