#!/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