Skip to content

Commit

Permalink
Update restoreP2PWlan.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
codekoch authored May 18, 2019
1 parent d357901 commit b0fe615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/sbin/restoreP2PWlan.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh
# setting up p2p-wlan
timestart=$(date +%s)
sudo service dnsmasq stop
sudo service hostapd stop
mac="`sudo /sbin/ifconfig eth0 | grep 'ether ' | awk '{ print $2}'`"
Expand All @@ -10,6 +9,7 @@ wlanssid="MK-"$mac2
#sudo sed -i "s/device_name=.*$/device_name=$wlanssid/g" /etc/wpa_supplicant/wpa_supplicant.conf
ain="$(sudo wpa_cli interface)"
echo "${ain}"
timestart=$(date +%s)
if [ `echo "${ain}" | grep -c "p2p-wl"` -gt 0 ]
then
echo "already on"
Expand Down

0 comments on commit b0fe615

Please sign in to comment.