This patch adds a new config option 'syslog' which will -when present-
enable udhcpc's capability to send log message to syslog.

Signed-off-by: Michael Heimpold <m...@heimpold.de>

Index: package/base-files/files/lib/network/config.sh
===================================================================
--- package/base-files/files/lib/network/config.sh      (revision 27292)
+++ package/base-files/files/lib/network/config.sh      (working copy)
@@ -359,6 +359,7 @@
                        config_get vendorid "$config" vendorid
                        config_get_bool broadcast "$config" broadcast 0
                        config_get reqopts "$config" reqopts
+                       config_get_bool syslog "$config" syslog
 
                        [ -z "$ipaddr" ] || \
                                $DEBUG ifconfig "$iface" "$ipaddr" 
${netmask:+netmask "$netmask"}
@@ -378,7 +379,7 @@
                                ${hostname:+-H $hostname} \
                                ${clientid:+-c $clientid} \
                                ${vendorid:+-V $vendorid} \
-                               -b -p "$pidfile" $broadcast \
+                               ${syslog:+-S} -b -p "$pidfile" $broadcast \
                                ${dhcpopts}
                ;;
                none)
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to