[base-files] make basefiles aware of procd
[openwrt.git] / package / base-files / files.old / lib / preinit / 90_init_console
1 #!/bin/sh
2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4
5 init_console() {
6     if [ "$pi_suppress_stderr" = "y" ]; then
7         exec <$M0 >$M1 2>&0
8     else 
9         exec <$M0 >$M1 2>$M2
10     fi
11 }
12
13 boot_hook_add preinit_essential init_console
14