Changeset a6cd72e for udev/mount.sh


Ignore:
Timestamp:
Feb 21, 2006, 1:37:37 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
128c984
Parents:
ce36880
Message:

r861@server (orig r859): jim | 2005-12-06 22:41:11 -0800

r994@server: jim | 2005-12-06 22:39:42 -0800
Updates from 077 OpenSuse? Package


File:
1 edited

Legend:

Unmodified
Added
Removed
  • udev/mount.sh

    rce36880 ra6cd72e  
    1 #! /bin/bash
     1#!/bin/sh
     2########################################################################
     3#
     4# Description : Input devices
     5#
     6# Authors     : Based on Open Suse Udev Rules
     7#               kay.sievers@suse.de
     8#
     9# Adapted to  : Jim Gifford
     10# LFS
     11#
     12# Version     : 00.00
     13#
     14# Notes       :
     15#
     16########################################################################
    217
    3 . /etc/sysconfig/hardware/scripts/functions
     18. /etc/sysconfig/rc
     19. ${rc_functions}
    420. /etc/sysconfig/storage
    521
     
    2036        NODES="$NODES /dev/$sl"
    2137done
    22 info_mesg "Avilable nodes: $NODES"
     38boot_mesg "Avilable nodes: $NODES"
    2339
    2440NODE=
     
    3349                        NODE="$n"
    3450                        FSCK="$fsck"
    35                         info_mesg "matching line for $DEVNAME:"
    36                         info_mesg "$dn $mp $fs $opts $dump $fsck $x"
     51                        boot_mesg "matching line for $DEVNAME:"
     52                        boot_mesg "$dn $mp $fs $opts $dump $fsck $x"
    3753                        break 2
    3854                fi
     
    4359        MESSAGE="`fsck -a $DEVNAME`"
    4460        RET=$?
    45         info_mesg "$MESSAGE"
     61        boot_mesg "$MESSAGE"
    4662        case $RET in
    4763                0|1) : ;;
    4864                2|3)
    49                         info_mesg "Please unplug device $DEVNAME, and plug it again"
     65                        boot_mesg "Please unplug device $DEVNAME, and plug it again"
    5066                        logger -t $0 "fsck for '$DEVNAME' failed. Will not mount it."
    5167                        exit 0
     
    6379        MESSAGE="`mount -av "$NODE"`"
    6480        test $? != 0 && logger -t $0 "Could not mount '$DEVNAME'."
    65         info_mesg "$MESSAGE"
     81        boot_mesg "$MESSAGE"
    6682fi
Note: See TracChangeset for help on using the changeset viewer.