2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
13 grep -q "^$1:" "$file2" ||
echo "$*"
20 boot_run_hook preinit_mount_root
21 [ -f /sysupgrade.tgz
] && {
22 echo "- config restore -"
24 tar xzf
/sysupgrade.tgz
25 missing_lines
/rom
/etc
/passwd
/etc
/passwd
>> /etc
/passwd
26 missing_lines
/rom
/etc
/group
/etc
/group
>> /etc
/group
27 missing_lines
/rom
/etc
/shadow
/etc
/shadow
>> /etc
/shadow
28 # Prevent configuration corruption on a power loss
33 [ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root