~ubuntu-branches/ubuntu/gutsy/mdadm/gutsy

« back to all changes in this revision

Viewing changes to debian/mkconf

  • Committer: Package Import Robot
  • Author(s): Fabio M. Di Nitto
  • Date: 2006-11-20 06:56:19 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20061120065619-2sr98cpmlv8dcqzt
Tags: 2.5.6-5ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Copyright © martin f. krafft <madduck@madduck.net>
6
6
# distributed under the terms of the Artistic Licence 2.0
7
7
#
8
 
# $Id: mkconf 240 2006-10-26 20:42:03Z madduck $
 
8
# $Id: mkconf 261 2006-11-09 13:32:35Z madduck $
9
9
#
10
10
 
11
11
set -eu
33
33
    # only barf if the config file specifies anything else than MAILADDR
34
34
    if egrep -qv '^(MAILADDR.*|#.*|)$' $CONFIG 2>/dev/null; then
35
35
      echo "E: $ME: $CONFIG already exists." >&2
36
 
      exit -1
 
36
      exit 255
37
37
    fi
38
38
    
39
39
    mkdir --parent ${CONFIG%/*}
84
84
if [ $generate -eq 1 ]; then
85
85
  cat <<_eof
86
86
# This file was auto-generated on $(date -R)
87
 
# by mkconf \$Id: mkconf 240 2006-10-26 20:42:03Z madduck $
 
87
# by mkconf \$Id: mkconf 261 2006-11-09 13:32:35Z madduck $
88
88
_eof
89
89
 
90
90
  mkdir -p /var/lib/mdadm