--- netplug-1.2.9.1.orig/main.c
+++ netplug-1.2.9.1/main.c
@@ -71,7 +71,7 @@
char *name = RTA_DATA(attrs[IFLA_IFNAME]);
if (!if_match(name)) {
- do_log(LOG_INFO, "%s: ignoring event", name);
+ do_log(LOG_DEBUG, "%s: ignoring event", name);
return 0;
}
--- netplug-1.2.9.1.orig/scripts/netplug
+++ netplug-1.2.9.1/scripts/netplug
@@ -25,7 +25,7 @@
case "$action" in
in)
if [ -x /sbin/ifup ]; then
- exec /sbin/ifup $dev
+ exec /sbin/ifup "$dev"
else
echo "Please teach me how to plug in an interface!" 1>&2
exit 1
@@ -35,14 +35,14 @@
if [ -x /sbin/ifdown ]; then
# At least on Fedora Core 1, the call to ip addr flush infloops
# /sbin/ifdown $dev && exec /sbin/ip addr flush $dev
- exec /sbin/ifdown $dev
+ exec /sbin/ifdown "$dev"
else
echo "Please teach me how to unplug an interface!" 1>&2
exit 1
fi
;;
probe)
- exec /sbin/ip link set $dev up >/dev/null 2>&1
+ exec /sbin/ip link set "$dev" up >/dev/null 2>&1
;;
*)
echo "I have been called with a funny action of '%s'!" 1>&2
--- netplug-1.2.9.1.orig/man/man8/netplugd.8
+++ netplug-1.2.9.1/man/man8/netplugd.8
@@ -165,7 +165,7 @@
events. The command is run synchronously; it must exit with status
code 0 if it succeeds, otherwise with a non-zero exit code or signal.
.El
-.It Pa /etc/rc.d/init.d/netplugd
+.It Pa /etc/init.d/netplug
The
.Xr init 8
script that starts, stops, and displays status of the