3. Persisting Drivers
Unless you particularly feel like repeating that process whenever you upload a sysupgrade image to the device, you’ll need to configure “Opkg extras” and “Hotplug extras.” These, in tandem, will reinstall your manually installed packages whenever you perform an update and make them as close to 0-downtime as possible. There’s instructions in the OpenWRT wiki here for that:
- https://openwrt.org/docs/guide-user/advanced/opkg_extras
- https://openwrt.org/docs/guide-user/advanced/hotplug_extras
…but they boil down to:
uclient-fetch -O opkg-extras.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/opkg_extras?codeblock=0"
. ./opkg-extras.sh
uclient-fetch -O hotplug-extras.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/hotplug_extras?codeblock=0"
. ./hotplug-extras.sh
…and that’s pretty much it!