rc-scripts/trunk/sysconfig/network-scripts: ifdown ifup

arekm cvs at pld-linux.org
Tue Oct 4 20:09:34 CEST 2005


Author: arekm
Date: Tue Oct  4 20:09:28 2005
New Revision: 6425

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifdown
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
Use pidfile for wpa_supplicant.

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifdown
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifdown	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifdown	Tue Oct  4 20:09:28 2005
@@ -91,8 +91,8 @@
 
 if is_wireless_device "${DEVICE}"; then
     if is_yes "${WLAN_WPA}"; then
-	killall wpa_supplicant
-	rm -f /var/run/wpa_supplicant
+	killproc --pidfile "wpa_supplicant-${DEVICE}.pid" wpa_supplicant > /dev/null 2>&1
+	rm -f "/var/run/wpa_supplicant-${DEVICE}.pid"
     fi
 fi
     

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup	Tue Oct  4 20:09:28 2005
@@ -106,7 +106,7 @@
 if is_wireless_device "${DEVICE}"; then
     wireless_param ${DEVICE}
     if is_yes "${WLAN_WPA}"; then
-	/usr/sbin/wpa_supplicant -B -w -D ${WLAN_WPA_DRIVER} -c ${WLAN_WPA_CONFIG} -i ${DEVICE} ${WLAN_WPA_OPTIONS}
+	/usr/sbin/wpa_supplicant -B -w -D ${WLAN_WPA_DRIVER} -c ${WLAN_WPA_CONFIG} -i ${DEVICE} ${WLAN_WPA_OPTIONS} -P "/var/run/wpa_supplicant-${DEVICE}.pid"
     fi
 fi
 	



More information about the pld-cvs-commit mailing list