malekith: bootdisk mkmod,1.2,1.3
Michał Moskal
malekith w pld-linux.org
Pią, 22 Mar 2002, 11:10:54 CET
Module name: bootdisk
Changes by: malekith
Changed RCS file: /cvsroot/bootdisk/mod/mkmod,v
----------------------------
revision 1.3
date: 2002/03/22 10:10:50; author: malekith; state: Exp; lines: +8 -2
- added @mod-empty command
Index: mkmod
===================================================================
RCS file: /cvsroot/bootdisk/mod/mkmod,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- mkmod 21 Mar 2002 15:56:30 -0000 1.2
+++ mkmod 22 Mar 2002 10:10:50 -0000 1.3
@@ -38,6 +38,7 @@
modfile="./modules"
mod=
+might_be_empty=
finalize_pkg ()
{
@@ -50,6 +51,9 @@
done
cp `$xcmd` mod-root
echo -n "copied "
+ if [ "$might_be_empty" ] ; then
+ touch mod-root/DUMMY
+ fi
if [ "`echo mod-root/*`" = "mod-root/*" ] ; then
echo "no modules found" 1>&2
exit 1
@@ -61,15 +65,17 @@
while read cmd rest ; do
case "$cmd" in
- @mod | @mod4 )
+ @mod | @mod4 | @mod-empty | @mod4-empty)
if test "$mod" ; then
finalize_pkg
fi
mod=
mod_list=
- if [ "$cmd" != "@mod4" -o "$KERNEL_VERCODE" -ge 4 ] ; then
+ if [ "$(echo $cmd | grep mod4 || :)" = "" \
+ -o "$KERNEL_VERCODE" -ge 4 ] ; then
mod="$rest"
fi
+ might_be_empty=$(echo $cmd | grep empty || :)
;;
"#" | "" )
;;
Więcej informacji o liście dyskusyjnej pld-installer