Index: etc/rc.d/wpa_supplicant =================================================================== --- etc/rc.d/wpa_supplicant +++ etc/rc.d/wpa_supplicant @@ -38,7 +38,11 @@ load_rc_config $name command=${wpa_supplicant_program} -conf_file=${wpa_supplicant_conf_file} +if [ -e ${wpa_supplicant_conf_file}.${ifn} ]; then + conf_file=${wpa_supplicant_conf_file}.${ifn} +else + conf_file=${wpa_supplicant_conf_file} +fi pidfile="/var/run/${name}/${ifn}.pid" command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile" required_files=$conf_file