#!/bin/ash iwconfig wlan0 sleep 2 echo "Choose an option:" echo "1) Restart the web service" echo "2) Connect to another Wi-Fi network" read -p "Enter your choice (1 or 2): " choice if [ "$choice" -eq 1 ]; then echo echo "Restarting networking service..." doas rc-service networking restart sleep 2 exit 0 elif [ "$choice" -eq 2 ]; then echo echo "Setting up your Wi-Fi network..." sleep 2 echo read -p "Enter the Wi-Fi name: " name read -p "Enter the password: " password echo echo "Configuring Wi-Fi..." if [ -z "$password" ]; then echo -e "network={\n ssid=\"$name\"\n key_mgmt=NONE\n}" > ./wpa_supplicant.conf else wpa_passphrase $name $password > ./wpa_supplicant.conf fi doas mv ./wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf doas rc-service wpa_supplicant restart doas rc-service networking restart sleep 3 fi #!/bin/ash xfce4-terminal --hold -e "mednafen '$1'" #!/bin/ash setxkbmap -layout us,bg -variant ,phonetic -option 'grp:alt_shift_toggle'