File: script

package info (click to toggle)
multipath-tools 0.4.8%2Bgit0.761c66f-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,536 kB
  • ctags: 2,590
  • sloc: ansic: 22,254; sh: 549; makefile: 254
file content (15 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

CONFIG_FILE=/etc/multipath.conf

exec >&3

if [ -e "$CONFIG_FILE" ]; then
    printf "Contents of $CONFIG_FILE:\n"
    grep  -Ev "^([[:space:]]*#|$)" $CONFIG_FILE
else
    printf "$CONFIG_FILE does not exist.\n"
fi

printf "\n"