Ignore:
Timestamp:
Jan 6, 2007, 6:12:54 PM (14 years ago)
Author:
Bruno Cornec
Message:

Work on FreeBSD's mindi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/restore-scripts/mondo/hack-fstab

    r567 r1039  
    11#!/bin/sh
    22#
     3# $Id$
    34#
    4 #
    5 #
    6 #
    7 # 2003/08/04
    8 # - added some logging
    9 #
    10 # mid-2002 --- created
    11 ################################################
    12 
    135
    146LogIt() {
    157    echo "$1" >> /dev/stderr
    168}
    17 
    18 
    199
    2010
     
    3323#    echo "original_fstab_line = $original_fstab_line" >> /dev/stderr
    3424    if [ "`grep "LABEL=" $old_fstab`" != "" ] ; then
    35     if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
    36         device="LABEL=$mountpoint"
    37     fi
     25        if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
     26            device="LABEL=$mountpoint"
     27        fi
    3828    fi
    3929
     
    4434    if [ "$original_fstab_line" != "" ] ; then
    4535#   echo $original_fstab_line | gawk '{i=index($0,$4); print substr($0,i);}'
    46     echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '
     36        echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '
    4737    else
    48     echo -e "defaults 0 0"
     38        echo -e "defaults 0 0"
    4939    fi
    5040}
    51 
    5241
    5342
Note: See TracChangeset for help on using the changeset viewer.