2010-01-26 01:11:17 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
|
|
|
do_mount_root() {
|
2013-04-26 03:02:32 +08:00
|
|
|
mount_root
|
|
|
|
boot_run_hook preinit_mount_root
|
|
|
|
[ -f /sysupgrade.tgz ] && {
|
|
|
|
echo "- config restore -"
|
|
|
|
cd /
|
|
|
|
mv sysupgrade.tgz /tmp
|
|
|
|
tar xzf /tmp/sysupgrade.tgz
|
|
|
|
rm -f /tmp/sysupgrade.tgz
|
|
|
|
sync
|
|
|
|
}
|
2012-11-24 04:02:02 +08:00
|
|
|
}
|
2010-01-26 01:11:17 +08:00
|
|
|
|
2013-03-14 02:11:19 +08:00
|
|
|
[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root
|