Package: ifupdown
Version: 0.7.48.1
Severity: minor
This morning when I turned on my machine,
for some reason I got an IP address but no route,
so I did
root@frey:~# ifdown wlan0
ifdown: interface wlan0 not configured
root@frey:~# ifup wlan0
ifup: interface wlan0 already configured
root@frey:~# ifdown -a
cat: /run/udhcpc.wlan0.pid: No such file or directory
/bin/sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid |
job]... or
kill -l [exitstatus]
cat: /run/udhcpc.wlan0.pid: No such file or directory
/bin/sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid |
job]... or
kill -l [exitstatus]
root@frey:~# ifup -a
root@frey:~#
And then I was happy again:
$ ip r
default via 203.7.155.65 dev wlan0
203.7.155.64/26 dev wlan0 proto kernel scope link src 203.7.155.97
$ ip -4 a
1: lo: <LOOPBACK> mtu 65536 qdisc noqueue state DOWN group default
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
group default qlen 1000
inet 203.7.155.97/26 brd 203.7.155.127 scope global wlan0
valid_lft forever preferred_lft forever
But the output from the "ifdown -a" suggests that ifupdown is assuming
that udhcpc suceeded at least enough to write a pidfile, which is
clearly not a safe assumption to make.
The issue appears to be this
kill -USR2 $(cat /run/udhcpc.%iface%.pid); kill -TERM $(cat
/run/udhcpc.%iface%.pid) \
elsif (execable("/sbin/udhcpc"))
How about this? dpkg is "Essential: yes", so it should be no problem.
start-stop-daemon --stop --oknodo --user root --name udhcpc --pidfile
/run/udhcpc.wlan0.pid --retry=USR2/5/INT/5/KILL/5
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'unstable'),
(1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ifupdown depends on:
ii adduser 3.113+nmu3
ii initscripts 2.88dsf-51
ii iproute 1:3.12.0-2
ii iproute2 3.12.0-2
ii libc6 2.18-4
ii lsb-base 4.1+Debian12
Versions of packages ifupdown recommends:
pn isc-dhcp-client | dhcp-client <none>
Versions of packages ifupdown suggests:
ii net-tools 1.60-25
pn ppp <none>
pn rdnssd <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]