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

. /lib/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