diff options
Diffstat (limited to 'install-utils')
-rw-r--r-- | install-utils/compile_manpages | 18 | ||||
-rw-r--r-- | install-utils/convfstab | 78 | ||||
-rw-r--r-- | install-utils/remove_preformat_manpages | 21 |
3 files changed, 117 insertions, 0 deletions
diff --git a/install-utils/compile_manpages b/install-utils/compile_manpages new file mode 100644 index 0000000..fb3bbdb --- /dev/null +++ b/install-utils/compile_manpages @@ -0,0 +1,18 @@ +#!/bin/sh + +MAN8="debugfs badblocks e2fsck mke2fs dumpe2fs mklost+found \ + fsck tune2fs" +MAN1="lsattr chattr" + +for i in $MAN8 +do + man -S 8 $i > /dev/null +done + + +for i in $MAN1 +do + man -S 1 $i > /dev/null +done + +exit 0 diff --git a/install-utils/convfstab b/install-utils/convfstab new file mode 100644 index 0000000..11160bf --- /dev/null +++ b/install-utils/convfstab @@ -0,0 +1,78 @@ +#!/bin/sh +# Make /etc/fstab standard compliant. +# M.Weller (eowmob@exp-math.uni-essen.de) 13.11.1994. +# This script is public domain. Still if only slightly +# modified a credit to me might be nice. + +ROOT_PASS=1 # Pass for root file system +NON_ROOT_PASS=2 # Pass for non root file systems +DEF_FLAGS="defaults" # Default filesysflags +DEF_DUMP=0 # Default dumpfreq. + +while read LINE +do + set -- $LINE + if [ $# != 0 ] + then + case $1 in + \#* | !* ) + echo "$LINE" + # Actually there are no comments allowed in /etc/fstab + echo "Warning: comment in /etc/fstab detected." >&2 + echo "Please remove it by hand." >&2 + ;; + * ) + if [ $# -gt 6 ] || [ $# -lt 3 ] + then + echo "Don't have a clue about \"$LINE\"." >&2 + echo "$LINE" + else + case $2 in + / ) + PASS=$ROOT_PASS + ;; + none ) + PASS=0 + ;; + * ) + PASS=$NON_ROOT_PASS + ;; + esac + DUMP=$DEF_DUMP + case $3 in + ignore | iso9660 | msdos | hpfs | sysv | \ + xenix | coherent | nfs | proc | sw | swap ) + DUMP=0; + PASS=0; + ;; + esac + case $# in + 3 ) + echo "$LINE $DEF_FLAGS $DUMP $PASS" + ;; + 4 ) + echo "$LINE $DUMP $PASS" + ;; + 5 ) + echo "$LINE $PASS" + ;; + 6) + echo "$LINE" + ;; + esac + fi + ;; + esac + else + echo "Warning: One empty line removed." >&2 + fi +done </etc/fstab >/tmp/newfstab.$$ +mv -f /etc/fstab /etc/fstab.bak +mv -f /tmp/newfstab.$$ /etc/fstab +if [ $? != 0 ] +then + echo "Installation of patched /etc/fstab failed." + echo "It would have been:" + cat /tmp/newfstab.$$ + rm -f /tmp/newfstab.$$ +fi diff --git a/install-utils/remove_preformat_manpages b/install-utils/remove_preformat_manpages new file mode 100644 index 0000000..67dfff8 --- /dev/null +++ b/install-utils/remove_preformat_manpages @@ -0,0 +1,21 @@ +#!/bin/sh + +PREFORMAT_ROOT=/usr/man/preformat +COMPILED_ROOT=/usr/man + +MAN8="debugfs.8 badblocks.8 e2fsck.8 mke2fs.8 dumpe2fs.8 mklost+found.8 \ + fsck.8 tune2fs.8 e2label.8" +MAN1="lsattr.1 chattr.1" + +for i in $MAN8 +do + rm -f $PREFORMAT_ROOT/cat8/$i $COMPILED_ROOT/cat8/$i \ + $PREFORMAT_ROOT/cat8/$i.gz $COMPILED_ROOT/cat8/$i.gz +done + + +for i in $MAN1 +do + rm -f $PREFORMAT_ROOT/cat1/$i $COMPILED_ROOT/cat1/$i \ + $PREFORMAT_ROOT/cat1/$i.gz $COMPILED_ROOT/cat1/$i.gz +done |