]> Zhao Yanbai Git Server - minix.git/commitdiff
*** empty log message ***
authorBen Gras <ben@minix3.org>
Fri, 3 Feb 2006 15:41:58 +0000 (15:41 +0000)
committerBen Gras <ben@minix3.org>
Fri, 3 Feb 2006 15:41:58 +0000 (15:41 +0000)
commands/scripts/Makefile
commands/scripts/packme.sh [new file with mode: 0644]
commands/scripts/setup.sh
etc/mtree/minix.tree
tools/release.sh

index 22cd8f22c736da32c45800f8792fc4ea8b8ad659..e7dbaa1139a88b0cd950864cbced53dafd6b1463 100755 (executable)
@@ -42,6 +42,7 @@ usr:  \
        /usr/bin/binsizes \
        /usr/bin/rotate \
        /usr/bin/floppysetup \
+       /usr/bin/packme \
        /usr/bin/spell \
        /usr/bin/srccrc \
        /usr/bin/svclog \
@@ -137,6 +138,9 @@ clean:
 /usr/bin/binsizes:     binsizes.sh
        install -m 755 -c -o bin $? $@
 
+/usr/bin/packme:       packme.sh
+       install -m 755 -c -o bin $? $@
+
 /usr/bin/spell:        spell.sh
        install -m 755 -c -o bin $? $@
 
diff --git a/commands/scripts/packme.sh b/commands/scripts/packme.sh
new file mode 100644 (file)
index 0000000..106fa5e
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e 
+
+RC=/usr/etc/rc.package
+CDDIR=PACKAGES
+
+if [ -f "$RC" ]
+then   . "$RC"
+fi
+
+cd /
+
+if [ -n "$cddrive" ]
+then   isodir "$cddrive" $CDDIR | grep -i tbz | while read package
+       do      echo -n "Install $package (y/n) ? "
+               read y
+               if [ "$y" = y ]
+               then    isoread "$cddrive" $CDDIR/$package | bzip2 -d | pax -r -p e '*' / || echo "Extract failed."
+               fi
+       done
+fi
index da3da0f26b2f1d7b5f63fa5e22449158603aceae..bf20eadedf1614016d3771bfd29fb8e86891542d 100755 (executable)
@@ -618,7 +618,7 @@ edparams /dev/$root "rootdev=$root; ramimagedev=$root; $disable; minix(1,Start M
 pfile="/mnt/src/tools/fdbootparams"
 echo "rootdev=$root; ramimagedev=$root; $disable; save" >$pfile
 # Save name of CD drive
-echo "cddrive=`mount | grep usr | awk '{ print $1 }'`" >>/mnt/etc/rc.package
+echo "cddrive=`mount | grep usr | awk '{ print $1 }' | sed 's/p.*//'`" >>/mnt/etc/rc.package
 
 sync
 
index 7941ee5a29f467e0699b84c5c455ae88863a131f..218b3c70cae6db6dad78fafc79f8a6e0e926fcaf 100644 (file)
@@ -45,6 +45,7 @@
 755  bin    operator  /usr/local/man/man7
 755  bin    operator  /usr/local/man/man8
 755  bin    operator  /usr/local/man/man9
+775  bin     operator  /usr/local/packages
 775  bin     operator  /usr/local/src
 755  bin     operator  /usr/man
 755  bin     operator  /usr/man/man1
index 9db55896a45f4eb2c3154464d2f3f68e58ce8020..ffe0bc25a33c475ef00dfd189b1ae59cacde6f9f 100755 (executable)
@@ -260,7 +260,7 @@ sh mkboot cdfdboot
 cp $IMAGE $CDFILES/bootflop.img
 cp release/cd/* $CDFILES
 
-DESTPACKAGES=`pwd`/release/cd/Packages
+DESTPACKAGES=`pwd`/release/cd/PACKAGES
 rm -rf $DESTPACKAGES
 mkdir $DESTPACKAGES