This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:guide-user:advanced:opkg_extras [2023/09/19 00:00] – [Automated] fix wget UA vgaetera | docs:guide-user:advanced:opkg_extras [2023/10/03 18:19] – [Instructions] delay for networking to become ready vgaetera |
|---|
| * Identify package types with [[man>grep(1)|grep]] and [[man>find(1)|find]], and RWM with [[man>mount(8)|mount]]. | * Identify package types with [[man>grep(1)|grep]] and [[man>find(1)|find]], and RWM with [[man>mount(8)|mount]]. |
| * Support importing [[https://github.com/openwrt/openwrt/blob/master/package/base-files/files/sbin/sysupgrade#L249-L255|user-installed]] packages from [[docs:techref:sysupgrade|Sysupgrade]]. | * Support importing [[https://github.com/openwrt/openwrt/blob/master/package/base-files/files/sbin/sysupgrade#L249-L255|user-installed]] packages from [[docs:techref:sysupgrade|Sysupgrade]]. |
| * Use [[docs:guide-user:base-system:hotplug|Hotplug]] to detect WAN connectivity and trigger profile restore. | * Use [[docs:guide-user:advanced:hotplug_extras|Hotplug extras]] to detect WAN connectivity and trigger profile restore. |
| * Utilize lockfiles with [[https://github.com/openwrt/openwrt/blob/master/package/utils/busybox/patches/220-add_lock_util.patch|lock]] to avoid race conditions and loops. | * Utilize lockfiles with [[https://github.com/openwrt/openwrt/blob/master/package/utils/busybox/patches/220-add_lock_util.patch|lock]] to avoid race conditions and loops. |
| * Perform [[man>reboot(8)|reboot]] to apply changes after automatic profile restore. | * Perform [[man>reboot(8)|reboot]] to apply changes after automatic profile restore. |
| do if [ ! -e /etc/opkg-restore-"${OPKG_CONF}" ] \ | do if [ ! -e /etc/opkg-restore-"${OPKG_CONF}" ] \ |
| && lock -n /var/lock/opkg-restore \ | && lock -n /var/lock/opkg-restore \ |
| | && sleep 10 \ |
| && opkg update | && opkg update |
| then . /etc/profile.d/opkg.sh | then . /etc/profile.d/opkg.sh |