Look at the following lines of code:
. $IPKG_INSTROOT/etc/functions.sh
initscript=$1
action=${2:-help}
shift 2
What does the action command do?
Look at the following lines of code:
. $IPKG_INSTROOT/etc/functions.sh
initscript=$1
action=${2:-help}
shift 2
What does the action command do?
Action is setting it's value to second argument of the script. If second argument is missing then it's set to "help".