blob: 193fd6ad1c6526a1eb1b0ac7e3db7efe3dce3541 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2# Copyright (C) 2006 OpenWrt.org
3# Copyright (C) 2010 Vertical Communications
4
5do_mount_root() {
6 #mount_root
7 boot_run_hook preinit_mount_root
8 [ -f /sysupgrade.tgz ] && {
9 echo "- config restore -"
10 cd /
11 mv sysupgrade.tgz /tmp
12 tar xzf /tmp/sysupgrade.tgz
13 rm -f /tmp/sysupgrade.tgz
14 sync
15 }
16}
17
18[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root