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