Hi GNUser
I had an idea I'd like to get feedback on.
Remove /e tc/init.d/busybox-aliases.
Change useBusybox to:
useBusybox(){
if [ ! -f /e tc/init.d/busybox-aliases ]
then
for Command in $(busybox --list)
do
case $Command in
xyzzy|plugh) # Commands that should never be aliased go here.
continue
;;
*)
echo "alias $Command=\"busybox $Command\"" >> /e tc/init.d/busybox-aliases
;;
esac
done
for Command in $(busybox.suid --list)
do
case $Command in
xyzzy|plugh) # Commands that should never be aliased go here.
continue
;;
*)
echo "alias $Command=\"busybox.suid $Command\"" >> /e tc/init.d/busybox-aliases
;;
esac
done
fi
. /e tc/init.d/busybox-aliases
}
Sorry, the full path for busybox-aliases was causing the Forum Error
message so I had to change /etc/ to /e tc/.
The first time useBusybox gets called, it creates /e tc/init.d/busybox-aliases
and then sources it. After that it only sources it when it gets called.
This way if commands get added or removed, /e tc/init.d/busybox-aliases will
always match busyboxes configuration.
By the way, these 2 won't work:
alias mount="busybox mount"
alias mount="busybox mount"
In TC4 everything was provide by busybox. After that, some commands
were provided by busybox.suid , including those 2.