Differences
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/04/02 18:31] – [Examples] vgaetera | docs:guide-user:advanced:opkg_extras [2023/10/03 18:19] – [Instructions] delay for networking to become ready vgaetera | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| * Identify package types with [[man> | * Identify package types with [[man> | ||
| * Support importing [[https:// | * Support importing [[https:// | ||
| - | * Use [[docs: | + | * Use [[docs: |
| * Utilize lockfiles with [[https:// | * Utilize lockfiles with [[https:// | ||
| * Perform [[man> | * Perform [[man> | ||
| - | * Write and read non-interactive logs with [[docs: | ||
| * Fetch the default profile to restore and roll back from UCI, unless specified manually. | * Fetch the default profile to restore and roll back from UCI, unless specified manually. | ||
| * Take precedence for remove over install to avoid package conflicts while restoring profile. | * Take precedence for remove over install to avoid package conflicts while restoring profile. | ||
| Line 267: | Line 266: | ||
| do if [ ! -e / | do if [ ! -e / | ||
| && lock -n / | && lock -n / | ||
| + | && sleep 10 \ | ||
| && opkg update | && opkg update | ||
| then . / | then . / | ||
| - | opkg restore " | + | opkg restore " |
| - | | logger -t opkg | + | /var/log/opkg-restore-" |
| touch / | touch / | ||
| lock -u / | lock -u / | ||
| Line 298: | Line 298: | ||
| uci set opkg.defaults.restore=" | uci set opkg.defaults.restore=" | ||
| uci set opkg.init=" | uci set opkg.init=" | ||
| - | uci add_list opkg.init.rpkg=" | + | uci add_list opkg.init.ipkg=" |
| uci add_list opkg.init.ipkg=" | uci add_list opkg.init.ipkg=" | ||
| uci add_list opkg.init.ipkg=" | uci add_list opkg.init.ipkg=" | ||
| Line 310: | Line 310: | ||
| # Check Opkg log | # Check Opkg log | ||
| - | logread | + | tail -f /var/log/opkg-* |
| # Upgrade packages | # Upgrade packages | ||
| Line 323: | Line 323: | ||
| ===== Automated ===== | ===== Automated ===== | ||
| <code bash> | <code bash> | ||
| - | uclient-fetch -O opkg-extras.sh " | + | wget -U "" |
| . ./ | . ./ | ||
| </ | </ | ||