各位大婶,这段shell脚本有问题吗?

查看 49|回复 0
作者:yaoruisheng   
#!/busybox sh
/busybox mount -t proc none /proc
/busybox mount -t sysfs none /sys
/busybox mount -t tmpfs none /dev
/busybox sleep 1
/busybox mdev -s
/busybox mount -t ext4 -o noatime,nodiratime,errors=panic /dev/mmcblk0p21 /linux
/busybox sleep 1
for f in /linux ;do
    if [-d /$f]; then
        for g in /linux/$f;do
            /busybox ln /linux/$f/$g /$f/$g ;
        done
    else
        /busybox ln /linux/$f /$f ;
    fi
done
/busybox umount /proc
/busybox umount /sys
/busybox umount /dev
# Launch delayed init script
/busybox nohub /init-android &
while [ ! -e /dev/.coldboot_done ]; do
   /busybox sleep 1
done
# wait for Android init to signal all done
while [ -e /dev/.booting ]; do
   /busybox sleep 1
done
export PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin
exec /usr/local/bin/serviced

这段, 大婶, 脚本

您需要登录后才可以回帖 登录 | 立即注册

返回顶部