We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d357901 commit b0fe615Copy full SHA for b0fe615
sources/sbin/restoreP2PWlan.sh
@@ -1,6 +1,5 @@
1
#!/bin/sh
2
# setting up p2p-wlan
3
-timestart=$(date +%s)
4
sudo service dnsmasq stop
5
sudo service hostapd stop
6
mac="`sudo /sbin/ifconfig eth0 | grep 'ether ' | awk '{ print $2}'`"
@@ -10,6 +9,7 @@ wlanssid="MK-"$mac2
10
9
#sudo sed -i "s/device_name=.*$/device_name=$wlanssid/g" /etc/wpa_supplicant/wpa_supplicant.conf
11
ain="$(sudo wpa_cli interface)"
12
echo "${ain}"
+timestart=$(date +%s)
13
if [ `echo "${ain}" | grep -c "p2p-wl"` -gt 0 ]
14
then
15
echo "already on"
0 commit comments