From: Roy Marples Date: Fri, 3 May 2013 14:19:17 +0000 (+0000) Subject: Fix syslogging a little. X-Git-Tag: v5.99.6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c633b939934751365a169292e99e043d028b476;p=thirdparty%2Fdhcpcd.git Fix syslogging a little. --- diff --git a/defs.h b/defs.h index ca782e72..47f20533 100644 --- a/defs.h +++ b/defs.h @@ -28,7 +28,7 @@ #define CONFIG_H #define PACKAGE "dhcpcd" -#define VERSION "5.99.4" +#define VERSION "5.99.5" #ifndef CONFIG # define CONFIG SYSCONFDIR "/" PACKAGE ".conf" diff --git a/dhcpcd-hooks/10-mtu b/dhcpcd-hooks/10-mtu index f04274e7..f8657cbd 100644 --- a/dhcpcd-hooks/10-mtu +++ b/dhcpcd-hooks/10-mtu @@ -19,7 +19,7 @@ elif [ -n "$new_interface_mtu" ] && $if_up; then # The smalled MTU dhcpcd can work with is 576 if [ "$new_interface_mtu" -ge 576 ]; then if set_mtu "$new_interface_mtu"; then - syslog info "$interface: MTU set to $new_interface_mtu" + syslog info "MTU set to $new_interface_mtu" # Save the MTU so we can restore it later if [ ! -e "$mtu_dir/$interface" ]; then mkdir -p "$mtu_dir" @@ -31,7 +31,7 @@ elif [ -e "$mtu_dir/$interface" ]; then if $if_up || $if_down; then # No MTU in this state, so restore the prior MTU mtu=$(cat "$mtu_dir/$interface") - syslog info "$interface: MTU restored to $mtu" + syslog info "MTU restored to $mtu" set_mtu "$mtu" rm "$mtu_dir/$interface" fi diff --git a/dhcpcd-hooks/15-timezone b/dhcpcd-hooks/15-timezone index d8310047..23ae924c 100644 --- a/dhcpcd-hooks/15-timezone +++ b/dhcpcd-hooks/15-timezone @@ -21,18 +21,17 @@ set_zoneinfo() done if [ -z "$zoneinfo_dir" ]; then - syslog warning "$interface: timezone directory not found" + syslog warning "timezone directory not found" return 1 fi zone_file="$zoneinfo_dir/$new_tzdb_timezone" if [ ! -e "$zone_file" ]; then - syslog warning \ - "$interface: no timezone definition for $new_tzdb_timezone" + syslog warning "no timezone definition for $new_tzdb_timezone" return 1 fi - syslog info "$interface: timezone changed to $new_tzdb_timezone" + syslog info "timezone changed to $new_tzdb_timezone" if [ -h "$localtime" ]; then ln -sf "$zone_file" "$localtime" else