diff --git a/usr/bin/wifi-setup b/usr/bin/wifi-setup new file mode 100755 index 0000000..daa2833 --- /dev/null +++ b/usr/bin/wifi-setup @@ -0,0 +1,20 @@ +#!/bin/sh + +SSID=$1 +PSWD=$2 + +if [ -z "$SSID" ]; then + echo "Please pass the SSID as the first argument" + exit 1 +fi + +if [ -z "$PSWD" ]; then + echo "Please pass the password as the second argument" + exit 1 +fi + +nmcli c add con-name $SSID ifname wlan0 type wifi ssid $SSID +nmcli c modify $SSID wifi-sec.key-mgmt wpa-psk +nmcli c modify $SSID wifi-sec.psk $PSWD +nmcli c modify $SSID ipv4.dns "8.8.8.8 8.8.4.4" +nmcli c up $SSID diff --git a/usr/bin/writable-root b/usr/bin/writable-root new file mode 100755 index 0000000..3c0f7c5 --- /dev/null +++ b/usr/bin/writable-root @@ -0,0 +1,5 @@ +#!/bin/sh +sudo touch /userdata/.writable_image +sudo touch /userdata/.adb_onlock + +echo "Please reboot to get write permissions to the rootfs"