Advertisement
zefie

opkg-install-manifest

Aug 20th, 2018
341
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement