Index: scripts/factory_reset.sh =================================================================== diff -u -rc4806959b76463cf56084c529884c8cc44947587 -r6ec732c47ad8fc77f90953f1a38233393843a5e8 --- scripts/factory_reset.sh (.../factory_reset.sh) (revision c4806959b76463cf56084c529884c8cc44947587) +++ scripts/factory_reset.sh (.../factory_reset.sh) (revision 6ec732c47ad8fc77f90953f1a38233393843a5e8) @@ -23,6 +23,7 @@ LOC_DEFAULT_SETTINGS_CONF="/home/root/scripts/default_settings.conf" #TODO update to reflect real location LOC_WIFI_CONF="/etc/wpa_supplicant/wpa_supplicant-wlan0.conf" LOC_BLUETOOTH_CONF="/etc/bluetooth/main.conf" +LOC_SSH_FILE="$HOME/.ssh/" # ------------------------------ Remove Wifi Conf if [ -f $LOC_WIFI_CONF ]; then @@ -43,4 +44,10 @@ # ------------------------------ Remove Logs rm -rf /media/sd-card/*/* +# ------------------------------ Remove ssh +if [ -d $LOC_SSH_FILE ]; then + rm -rf "$LOC_SSH_FILE" + echo "Deleted .ssh" +fi + exit 0