#!/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 " fi