busybox sysconf for fallback command mechansm

This commit is contained in:
aliriza committed 2024-09-10 21:36:31 +03:00
1 parent cfac36f8be
commit be517c889e
1 file changed
+7
+7
View File
@@ -5,3 +5,10 @@ if /bin/busybox [ ! -f /var/lib/ymp/sysconf/busybox/postinstall.done ] ; then
/bin/busybox chmod u+s /bin/su
/bin/busybox date > /var/lib/ymp/sysconf/busybox/postinstall.done
fi
for cmd in $(/bin/busybox --list) ; do
if [ -e /usr/bin/$cmd ] || [ -e /usr/sbin/$cmd ] ; then
/bin/busybox rm -f /bin/$cmd
elif ! [ -e /bin/$cmd ] && ! [ -e /sbin/$cmd ]; then
/bin/busybox ln -s busybox /bin/$cmd
fi
done