diff options
Diffstat (limited to 'node_modules/node-wifi/src/macOS/delete/command.js')
-rw-r--r-- | node_modules/node-wifi/src/macOS/delete/command.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/node-wifi/src/macOS/delete/command.js b/node_modules/node-wifi/src/macOS/delete/command.js new file mode 100644 index 0000000..e5e2b00 --- /dev/null +++ b/node_modules/node-wifi/src/macOS/delete/command.js @@ -0,0 +1,14 @@ +const command = (config, accessPoint) => { + const args = ['-removepreferredwirelessnetwork']; + + args.push(config.iface || 'en0'); + + args.push(accessPoint.ssid); + + return { + cmd: '/usr/sbin/networksetup', + args + }; +}; + +module.exports = command; |