Skip to content

Commit b0fe615

Browse files
authored
Update restoreP2PWlan.sh
1 parent d357901 commit b0fe615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/sbin/restoreP2PWlan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22
# setting up p2p-wlan
3-
timestart=$(date +%s)
43
sudo service dnsmasq stop
54
sudo service hostapd stop
65
mac="`sudo /sbin/ifconfig eth0 | grep 'ether ' | awk '{ print $2}'`"
@@ -10,6 +9,7 @@ wlanssid="MK-"$mac2
109
#sudo sed -i "s/device_name=.*$/device_name=$wlanssid/g" /etc/wpa_supplicant/wpa_supplicant.conf
1110
ain="$(sudo wpa_cli interface)"
1211
echo "${ain}"
12+
timestart=$(date +%s)
1313
if [ `echo "${ain}" | grep -c "p2p-wl"` -gt 0 ]
1414
then
1515
echo "already on"

0 commit comments

Comments
 (0)