#8 pid zum Killen von udhcp

closed-accepted
nobody
None
5
2009-12-07
2009-10-31
amd-65
No

Der Pfad für das PID-File von udhcp in wlan.sh ist falsch:

Index: bs_extra/start_scripts/wlan.sh

--- bs_extra/start_scripts/wlan.sh (Revision 55)
+++ bs_extra/start_scripts/wlan.sh (Arbeitskopie)
@@ -405,7 +405,7 @@
then
ip=`nvram get wl_ipaddr`;check_value "wl_ipaddr" $ip && ip=$RET_STRING
if [ "$ip" = "dhcp" ]; then
- kill -9 `cat /var/udhcp_wlan.pid 2>/dev/null` >/dev/null 2>/dev/null
+ kill -9 `cat /var/run/udhcp_wlan.pid 2>/dev/null` >/dev/null 2>/dev/null
usleep 500000
exec_cmd "udhcpc -i wl0 -b -p /var/run/udhcp_wlan.pid -s /etc/start_scripts/udhcpc_set.sh" 2>/dev/null
else
@@ -516,7 +516,7 @@
exec_cmd "brctl delif br0 wl0"
exec_cmd "ifconfig wl0 down"
exec_cmd "killall -9 nas"
- kill -9 `cat /var/udhcp_wlan.pid 2>/dev/null` >/dev/null 2>/dev/null
+ kill -9 `cat /var/run/udhcp_wlan.pid 2>/dev/null` >/dev/null 2>/dev/null
echo "rmmod wl &" >>$DEBUG_FILE 2>>$DEBUG_FILE
rmmod wl >/dev/null 2>/dev/null &
sleep 1
@@ -527,7 +527,7 @@
exec_cmd "brctl delif br0 wl0"
exec_cmd "ifconfig wl0 down"
exec_cmd "killall -9 nas"
- kill -9 `cat /var/udhcp_wlan.pid 2>/dev/null` >/dev/null 2>/dev/null
+ kill -9 `cat /var/run/udhcp_wlan.pid 2>/dev/null` >/dev/null 2>/dev/null
$0 start
;;
*)

Gruß
amd-65

Discussion

  • amd-65
    amd-65
    2009-10-31

    Patch nochmal als File

     
    Attachments
  • Oh mann, und das ist noch keinem aufgefallen :)

    Danke mal wieder....

     
    • status: open --> closed-accepted