]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix syslogging a little.
authorRoy Marples <roy@marples.name>
Fri, 3 May 2013 14:19:17 +0000 (14:19 +0000)
committerRoy Marples <roy@marples.name>
Fri, 3 May 2013 14:19:17 +0000 (14:19 +0000)
defs.h
dhcpcd-hooks/10-mtu
dhcpcd-hooks/15-timezone

diff --git a/defs.h b/defs.h
index ca782e725fe7043f07ee4c35a6d327259adef010..47f20533496e94f8a79d18b8b404e828e6fa9c4b 100644 (file)
--- 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"
index f04274e70b448e1ee21a745458f2f18b4ca32b34..f8657cbdf6ed6ac6ba6900a48a2684b776480e40 100644 (file)
@@ -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
index d831004727c39654cfaa9806148cafa40de34130..23ae924c5afe055e5618924a834e6853af491e6a 100644 (file)
@@ -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