Changeset 904 in MondoRescue for trunk/mondo/src/restore-scripts
- Timestamp:
- Oct 25, 2006, 1:51:57 AM (19 years ago)
- Location:
- trunk/mondo/src/restore-scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/restore-scripts/Makefile.am
r426 r904 1 SUBDIRS = mondousr1 SUBDIRS = src usr 2 2 3 3 restoreetcdir = $(pkgdatadir)/restore-scripts/etc -
trunk/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r729 r904 1 1 #!/bin/sh 2 2 # 3 # 09/05 4 # - replaced 'grep -w' with 'grep " $.. "' 3 # $Id$ 5 4 # 6 # 06/117 # - added support for 5th column, for labels8 #9 # 02/02/200310 # - something11 #12 # mid-200113 # - first written14 5 ############################################ 15 6 16 7 17 #LogIt() {18 # echo "$1" >> /dev/stderr19 #}20 21 22 8 read_partition_line() { 23 9 local tmp label mountpt mountline command format … … 34 20 LogIt "Not labeling $mountpt as anything because $label is not a label" 35 21 else 36 command="e2label $mountpt $label"37 22 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then 38 LogIt "Running '$command'" 23 command="e2label $mountpt $label" 24 LogIt "Running $command" 39 25 $command 26 elif [ "$format" = "swap" ] ; then 27 command="mkswap -L $label $mountpt" 28 LogIt "Running $command" 40 29 else 41 LogIt "I am NOT going to run '$command': the partition is format '$format', which doesn't like e2label anyway"30 LogIt "I am NOT going to run e2label: the partition is format '$format', which doesn't like e2label anyway" 42 31 fi 43 32 fi
Note:
See TracChangeset
for help on using the changeset viewer.