zefie icon

opkg-install-manifest

zefie | PRO | 08/20/18 09:29:43 AM UTC | 0 ⭐ | 996 👁️ | Never ⏰ | []
Bash |

340 B

|

None

|

0 👍

/

0 👎

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

Comments