80_mount_root 316 B

123456789101112131415
  1. #!/bin/sh
  2. # Copyright (C) 2006 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. do_mount_root() {
  5. mount_root
  6. boot_run_hook preinit_mount_root
  7. [ -f /sysupgrade.tgz ] && {
  8. echo "- config restore -"
  9. cd /
  10. tar xzf /sysupgrade.tgz
  11. }
  12. }
  13. [ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root