Skip to content

Commit 633bc3e

Browse files
author
John Scimone
committed
Cleaned up files and added basic switching scripts
1 parent f5dc22f commit 633bc3e

File tree

5 files changed

+20
-33
lines changed

5 files changed

+20
-33
lines changed
File renamed without changes.

switchToAP.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# check if running as root
4+
if [[ $EUID -ne 0 ]]; then
5+
echo "This script must be run as root"
6+
exit 1
7+
fi
8+
9+
systemctl start wpa_supplicant@ap0
10+
exit 0

switchToWlan.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# check if running as root
4+
if [[ $EUID -ne 0 ]]; then
5+
echo "This script must be run as root"
6+
exit 1
7+
fi
8+
9+
systemctl start wpa_supplicant@wlan0
10+
exit 0

wpa_supplicant@.service.new

Lines changed: 0 additions & 18 deletions
This file was deleted.

wpa_supplicant@.service.orig

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)