Allow running without "logger" installed
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Mar 2009 13:05:18 +0000 (13:05 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Mar 2009 13:05:18 +0000 (13:05 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14938 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/init.d/rcS

index b44f441..4090aba 100755 (executable)
@@ -1,8 +1,11 @@
 #!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 
+LOGGER="cat"
+[ -x /usr/bin/logger ] && LOGGER="logger -s -p 6 -t ''"
+
 {
        for i in /etc/rc.d/$1*; do
                [ -x $i ] && $i $2 2>&1
        done 
-} | logger -s -p 6 -t '' &
+} | $LOGGER &
This page took 0.025897 seconds and 4 git commands to generate.