aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/base-files/lib/preinit/20_failsafe_set_boot_wait_brcm
blob: da721b84841a37b32a643ef298d38c6dcfdab72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

. /etc/functions.sh

set_boot_wait() {
	[ -x "/usr/sbin/nvram" ] && {
		[ "$(nvram get boot_wait)" != "on" ] && {
			nvram set boot_wait=on
			nvram commit
		}
	}
}

boot_hook_add failsafe set_boot_wait