Ignore:
Timestamp:
Oct 25, 2006, 1:51:57 AM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r890:902 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/restore-scripts/mondo/label-partitions-as-necessary

    r729 r904  
    11#!/bin/sh
    22#
    3 # 09/05
    4 # - replaced 'grep -w' with 'grep " $.. "'
     3# $Id$
    54#
    6 # 06/11
    7 # - added support for 5th column, for labels
    8 #
    9 # 02/02/2003
    10 # - something
    11 #
    12 # mid-2001
    13 # - first written
    145############################################
    156
    167
    17 #LogIt() {
    18 #    echo "$1" >> /dev/stderr
    19 #}
    20 
    21  
    228read_partition_line() {
    239    local tmp label mountpt mountline command format
     
    3420            LogIt "Not labeling $mountpt as anything because $label is not a label"
    3521        else
    36             command="e2label $mountpt $label"
    3722            if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
    38                 LogIt "Running '$command'"
     23                command="e2label $mountpt $label"
     24                LogIt "Running $command"
    3925                $command
     26            elif [ "$format" = "swap" ] ; then
     27                command="mkswap -L $label $mountpt"
     28                LogIt "Running $command"
    4029            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"
    4231            fi
    4332    fi
Note: See TracChangeset for help on using the changeset viewer.