diff --git a/src/store/api/mcu/mcuWifiDisconnect.js b/src/store/api/mcu/mcuWifiDisconnect.js index bb6a974..5dbdb04 100644 --- a/src/store/api/mcu/mcuWifiDisconnect.js +++ b/src/store/api/mcu/mcuWifiDisconnect.js @@ -11,7 +11,7 @@ module.exports = ({ define }) => { function wifiDisconnect(ssid, passphrase, errors) { return new Promise((resolve, reject) => { - let command = 'for i in $(nmcli -t -f uuid c show); do nmcli c delete $i; done'; + let command = 'for i in $(nmcli -t c show|grep wlan); do nmcli c delete `echo $i|cut -d":" -f2`; done'; if (process.env.NODE_ENV !== 'production') command = 'sleep 2 && echo true'; exec(command, {}, (err, stdout) => {