1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-18 00:57:08 +03:00
openwrt-xburst/target/linux/brcm47xx/base-files/lib/preinit/20_failsafe_set_boot_wait_brcm
nbd 08944ed54a add back the base-files/image code from brcm-2.4 to brcm47xx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21945 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 20:41:49 +00:00

15 lines
214 B
Bash

#!/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