Last active
January 10, 2024 06:08
-
-
Save danielvijge/98f007029b820a3efdb48db71464111e to your computer and use it in GitHub Desktop.
Setup script to install packages on OpenWRT router after upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# Update the package list | |
echo "Updating package list..." | |
echo "" | |
opkg update | |
echo "" | |
# Install some package | |
echo "Installing extra packages..." | |
echo "" | |
opkg remove wpad-basic | |
opkg install wpad | |
opkg install luci-app-upnp | |
opkg install luci-app-sqm | |
opkg install luci-ssl | |
opkg install nano | |
opkg install diffutils | |
opkg install luci-proto-ipv6 | |
opkg install 6in4 | |
echo "" | |
# Apply default config | |
echo "Applying custom config..." | |
external_ip=`wget -qO- http://ipecho.net/plain` | |
echo " Setting external IP for UPnP to $external_ip" | |
uci set upnpd.config.external_ip="$external_ip" && uci commit upnpd | |
echo "" | |
echo "Updating all packages..." | |
upgrade-all-packages | |
# Reboot | |
echo "Rebooting..." | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment