[base-files] make basefiles aware of procd
[openwrt.git] / package / base-files / files / etc / preinit
index b237c2e..ff26f96 100755 (executable)
@@ -2,6 +2,8 @@
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
+[ -z "$PREINIT" ] && exec /sbin/init
+
 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 
 pi_ifname=