Ticket #107: openrc-wpa_supplicant-v2.patch

File openrc-wpa_supplicant-v2.patch, 0 bytes (added by Stefan Hellermann <stefan@the2masters.de>, 2 years ago)

better patch :-)

  • /lib/rc/net/wpa_supplicant.sh

    old new  
    175175 
    176176        if yesno "${IN_BACKGROUND}"; then 
    177177                # Only stop wpa_supplicant if it's not the controlling daemon 
    178                 ! service_started_daemon "${RC_SVCNAME}" "${wpas}" 1 
     178                service_started_daemon "${RC_SVCNAME}" "${wpas}" 0 || return 0 
    179179        fi 
    180         [ $? != 0 ] && return 0 
    181180 
    182181        local pidfile="/var/run/wpa_cli-${IFACE}.pid" 
    183182        if [ -f ${pidfile} ]; then