diff --git a/buildroot/board/tiesse/tgr/linux.config b/buildroot/board/tiesse/tgr/linux.config index 1f2bf4c..cc7a975 100644 --- a/buildroot/board/tiesse/tgr/linux.config +++ b/buildroot/board/tiesse/tgr/linux.config @@ -868,4 +868,4 @@ CONFIG_CRYPTO_AES_ARM64_CE_CCM=y CONFIG_CRYPTO_AES_ARM64_CE_BLK=y CONFIG_CRYPTO_CHACHA20_NEON=m CONFIG_CRYPTO_AES_ARM64_BS=m - +CONFIG_QCOM_WCNSS_CTRL=y diff --git a/conf/etc/sudoers b/conf/etc/sudoers index 333f447..a2a069c 100644 --- a/conf/etc/sudoers +++ b/conf/etc/sudoers @@ -8,4 +8,5 @@ Defaults passwd_tries=3 Defaults insults Defaults log_input,log_output -www-data ALL=(root) NOPASSWD: /bin/sh /update.sh +www-data ALL=(admin) NOPASSWD: /bin/sh /update.sh +upgrade ALL=(root) NOPASSWD: /usr/sbin/iw wlan0 scan, /sbin/iw wlan0 link, /bin/cat /etc/wpa_supplicant.conf, /bin/sh /wifi/connect.sh *, /bin/sh /wifi/disconnect.sh diff --git a/conf/etc/wpa_supplicant.conf b/conf/etc/wpa_supplicant.conf new file mode 100644 index 0000000..e69de29 diff --git a/conf/wifi/connect.sh b/conf/wifi/connect.sh new file mode 100755 index 0000000..924d335 --- /dev/null +++ b/conf/wifi/connect.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ "$#" -ne 2 ]; then + echo "Usage: connect.sh: " + exit 1 +fi + +/usr/bin/wpa_passphrase "$1" "$2" > /etc/wpa_supplicant.conf +/usr/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf +/usr/sbin/dhclient wlan0 diff --git a/conf/wifi/disconnect.sh b/conf/wifi/disconnect.sh new file mode 100755 index 0000000..d950474 --- /dev/null +++ b/conf/wifi/disconnect.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/sbin/wpa_cli -i wlan0 terminate