Advertisement
zefie

opkg-install-manifest

Aug 20th, 2018
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/sh
  2. if [ -f "${1}" ]; then
  3.     opkg update
  4.     PACKAGES=$(cat ${1} | cut -d' ' -f1 | sed ':a;N;$!ba;s/\n/ /g')
  5.     echo "This will install the following packages:"
  6.     echo "${PACKAGES}"
  7.     echo ""
  8.     read -p "Press [Enter] key to start, or [CTRL]-C (^C) to cancel..."
  9.     opkg install ${PACKAGES}
  10. else
  11.     echo "Usage: $0 <packagelist.manifest>"
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement