2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
6 # the shell really doesn't like having stdin/out closed
7 # that's why we use /dev/pty/m0 and m1 (or equivalent) as replacement
8 # for /dev/console if there's no serial console available
10 if grep -q devfs
/proc
/filesystems
; then
14 elif [ -x /sbin
/hotplug2
]; then
18 elif [ -x /sbin
/udevd
]; then
23 dd if=/dev
/console of
=/dev
/null bs
=1 count
=0 >/dev
/null
2>/dev
/null
&& {
30 boot_hook_add preinit_essential choose_console