Created
April 17, 2020 23:47
-
-
Save LuKePicci/0bd3a230beb190d9be001a87fb5aa82e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount_root() { | |
if [ -x /sbin/mount_root-mod ]; then | |
/sbin/mount_root-mod | |
else | |
echo "****************************************************" | |
echo "* NO mount_root-mod program found *" | |
echo "* can not mount the modroot filesystem *" | |
echo "****************************************************" | |
fi | |
} | |
do_mount_root() { | |
mount_root | |
boot_run_hook preinit_mount_modroot | |
[ -f /modupgrade.tgz ] && { | |
echo "- mod config restore -" | |
cd / | |
tar xzf /modupgrade.tgz | |
} | |
} | |
[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root | |
. /rom/lib/preinit/95_restore_version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment