diff --git a/extra/baseinstall b/extra/baseinstall index 001ac82..3a84bc9 100755 --- a/extra/baseinstall +++ b/extra/baseinstall @@ -104,6 +104,13 @@ adjustingtoolchain() { sleep 5 } +if [ -n "$1" -a -n "$2" ]; then + case $1 in + --init) init=$2 ;; + *) ;; + esac +fi + for i in ${PKG[@]}; do if [[ -d "$INDEX_DIR/$i" ]]; then echo "$i is installed" @@ -152,4 +159,8 @@ for i in ${PKG[@]}; do fi done +if [ "$init" ]; then + scratch -i -p "$init" +fi + exit 0 diff --git a/scratch b/scratch index c589270..e938a35 100755 --- a/scratch +++ b/scratch @@ -516,7 +516,7 @@ portinstall() { buildpkg ${OPTS[@]} || exit 1 popd else - msgerr "Port '$pkg$' not found." + msgerr "Port '$pkg' not found." fi done }