2010-01-25 17:11:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
|
|
|
do_mount_root() {
|
2014-03-12 19:32:51 +00:00
|
|
|
fs-state start
|
2013-04-25 19:02:32 +00:00
|
|
|
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-23 20:02:02 +00:00
|
|
|
}
|
2010-01-25 17:11:17 +00:00
|
|
|
|
2013-03-13 18:11:19 +00:00
|
|
|
[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root
|