Install all packages in debs directory if debs boot parameter is specified
authorUlrich Dangel <mru@grml.org>
Tue, 28 Dec 2010 22:54:10 +0000 (23:54 +0100)
committerUlrich Dangel <mru@grml.org>
Tue, 28 Dec 2010 22:54:10 +0000 (23:54 +0100)
autoconfig.functions
tests/test_debs.sh

index dec5107..6df961c 100755 (executable)
@@ -1920,6 +1920,9 @@ config_debs(){
 if checkbootparam 'debs' ; then
    iszsh && setopt localoptions shwordsplit
    DEBS="$(getbootparam 'debs' 2>>$DEBUG)"
 if checkbootparam 'debs' ; then
    iszsh && setopt localoptions shwordsplit
    DEBS="$(getbootparam 'debs' 2>>$DEBUG)"
+   if [ -z "$DEBS" ] ; then
+      DEBS="*"
+   fi
    if ! echo $DEBS | grep -q '/'; then
      # backwards compatibility: if no path is given get debs from debs/
      DEBS="debs/$DEBS"
    if ! echo $DEBS | grep -q '/'; then
      # backwards compatibility: if no path is given get debs from debs/
      DEBS="debs/$DEBS"
index 0a06a0d..04b566b 100755 (executable)
@@ -16,7 +16,7 @@ dpkg() {
 
 test_debs() {
     . ../autoconfig.functions
 
 test_debs() {
     . ../autoconfig.functions
-    CMDLINE='debs=*'
+    CMDLINE='debs'
     INSTALLED=''
 
     TMPDIR=$(mktemp -d)
     INSTALLED=''
 
     TMPDIR=$(mktemp -d)