mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
15 lines
311 B
Bash
15 lines
311 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Wrapper script for the steps to enable wifi client
|
||
|
|
||
|
systemctl stop piratebox
|
||
|
if /opt/piratebox/rpi/run_client.sh ; then
|
||
|
echo "Started Wifi client sucessfully!"
|
||
|
exit 0
|
||
|
else
|
||
|
echo "Error while starting wifi client, restarting piratebox"
|
||
|
systemctl start piratebox
|
||
|
exit 1
|
||
|
fi
|
||
|
exit 1
|