generated from ztimson/template
Compare commits
6 Commits
ztimson-pa
...
ztimson-pa
| Author | SHA1 | Date | |
|---|---|---|---|
| 96c6b86d40 | |||
| 255385bf82 | |||
| d0e2752cd8 | |||
| 8758a43088 | |||
| 4f79a652e5 | |||
| 6e201723d9 |
@@ -3,7 +3,7 @@
|
||||
<br />
|
||||
|
||||
<!-- Logo -->
|
||||
<img src="https://git.zakscode.com/repo-avatars/2b4ee6ba1f2e2618bf7694e4a52fb56d1d0ea6abafa2dcbe496ab786b86d5a76" alt="Logo" width="200" height="200">
|
||||
<img src="https://git.zakscode.com/repo-avatars/80775ae9cf0d2c4fb4aec035efb650e631d4d0046ab6fc04c6c041e91ba11d44" alt="Logo" width="200" height="200">
|
||||
|
||||
<!-- Title -->
|
||||
### Fallback AP
|
||||
@@ -63,9 +63,7 @@ Runs as a `systemd` service and is managed entirely through `nmcli`/`iw` — no
|
||||
- Root access
|
||||
|
||||
#### Instructions
|
||||
1. Download the script: `curl -sL https://git.zakscode.com/ztimson/fallback-ap/raw/branch/master/pi-fallback-ap.sh > /usr/local/bin/fallback-ap`
|
||||
2. Make it executable: `chmod +x /usr/local/bin/fallback-ap`
|
||||
3. Install and start the service: `sudo fallback-ap install`
|
||||
1. Download & Install: `curl -sL https://git.zakscode.com/ztimson/fallback-ap/raw/branch/master/install.sh | sudo bash`
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
20
install.sh
Normal file
20
install.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_URL="https://git.zakscode.com/ztimson/fallback-ap/raw/branch/master/fallback-ap.sh"
|
||||
INSTALL_PATH="/usr/local/bin/fallback-ap"
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "This installer needs to run as root, e.g.:"
|
||||
echo " curl -sL https://git.zakscode.com/ztimson/fallback-ap/raw/branch/master/install.sh | sudo bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Downloading..."
|
||||
curl -fsSL "$SCRIPT_URL" -o "$INSTALL_PATH"
|
||||
|
||||
chmod +x "$INSTALL_PATH"
|
||||
|
||||
echo "Running installer..."
|
||||
"$INSTALL_PATH" install
|
||||
Reference in New Issue
Block a user