mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 15:08:21 +00:00
add comments, clean up
This commit is contained in:
parent
f4245747f3
commit
b6276ca1df
@ -1,7 +1,4 @@
|
||||
#!/bin/sh
|
||||
###
|
||||
###DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
###
|
||||
|
||||
###This file is run by switch_root, from the initramfs in the kernel.
|
||||
LOG_NAME=/opt/wz_mini/log/wz_init
|
||||
@ -36,13 +33,13 @@ echo '
|
||||
|
||||
set -x
|
||||
|
||||
#replace stock busybox
|
||||
echo "replace stock busybox"
|
||||
mount --bind /opt/wz_mini/bin/busybox /bin/busybox
|
||||
|
||||
echo "replace stock fstab"
|
||||
mount --bind /opt/wz_mini/etc/fstab /etc/fstab
|
||||
|
||||
echo "mount workplace dir"
|
||||
echo "mount wz_mini tmpfs"
|
||||
mount -t tmpfs /opt/wz_mini/tmp
|
||||
|
||||
echo "install busybox applets"
|
||||
@ -96,14 +93,21 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
touch /opt/wz_mini/etc/.first_boot
|
||||
|
||||
if [ -f /opt/wz_mini/etc/.first_boot ]; then
|
||||
echo "Not first_boot"
|
||||
else
|
||||
echo "Set first_boot"
|
||||
touch /opt/wz_mini/etc/.first_boot
|
||||
fi
|
||||
|
||||
echo "replace stock inittab"
|
||||
mount --bind /opt/wz_mini/etc/inittab /etc/inittab
|
||||
|
||||
echo "bind /etc/profile for local/ssh shells"
|
||||
mount --bind /opt/wz_mini/etc/profile /etc/profile
|
||||
|
||||
echo "mounting tmpfs"
|
||||
echo "mounting global tmpfs"
|
||||
mount -t tmpfs /tmp
|
||||
|
||||
echo "mount system to replace factorycheck with dummy, to prevent bind unmount"
|
||||
|
Loading…
Reference in New Issue
Block a user