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:additional-software:opkg [2023/04/01 09:39] – [Local repository] vgaetera | docs:guide-user:additional-software:opkg [2023/04/03 00:34] – [Local repository] update vgaetera | ||
|---|---|---|---|
| Line 353: | Line 353: | ||
| EOF | EOF | ||
| chmod +x opkg-rm-pkg-deps.sh | chmod +x opkg-rm-pkg-deps.sh | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| # Run the script | # Run the script | ||
| Line 382: | Line 385: | ||
| REPO_LOCAL=" | REPO_LOCAL=" | ||
| REPO_URL=" | REPO_URL=" | ||
| - | REPO_DIR=" | + | case " |
| + | (snapshot) REPO_DIR=" | ||
| + | (*) REPO_DIR=" | ||
| + | esac | ||
| REPO_CORE=" | REPO_CORE=" | ||
| REPO_PKGS=" | REPO_PKGS=" | ||
| - | for REPO_DIR in ${REPO_CORE} ${REPO_PKGS} | + | for REPO_DIR in "${REPO_CORE}" "${REPO_PKGS}" |
| - | do mkdir -p ${REPO_LOCAL# | + | do mkdir -p "${REPO_LOCAL# |
| - | rsync --bwlimit=8M --del -r -t -v \ | + | rsync --bwlimit="8M" |
| - | ${REPO_URL/ | + | "${REPO_URL/ |
| - | ${REPO_LOCAL# | + | "${REPO_LOCAL# |
| done | done | ||
| EOF | EOF | ||
| Line 399: | Line 405: | ||
| # Configure Opkg to use local repo | # Configure Opkg to use local repo | ||
| . / | . / | ||
| - | REPO_URL=" | ||
| REPO_LOCAL=" | REPO_LOCAL=" | ||
| + | REPO_URL=" | ||
| sed -i -e " | sed -i -e " | ||
| Line 408: | Line 414: | ||
| # Configure Opkg on the clients | # Configure Opkg on the clients | ||
| . / | . / | ||
| - | REPO_URL=" | ||
| REPO_LOCAL=" | REPO_LOCAL=" | ||
| + | REPO_URL=" | ||
| sed -i -e " | sed -i -e " | ||
| </ | </ | ||