]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- do really nothing without config
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 7 Dec 2006 20:56:13 +0000 (20:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-blockdev.init -> 1.11

util-linux-blockdev.init

index b89083a9f2744c2a1a2f6fe54cef10abd2407927..9aba8477cbe7494a3678b69b76b22b870e165a29 100644 (file)
@@ -9,10 +9,9 @@
 # config:
 # pidfile:
 
-if [ -f /etc/sysconfig/blockdev ]; then
-       blockdevs=$(awk -F= '!/^#/ && !/^$/ {if ($2) print $1}' /etc/sysconfig/blockdev)
-fi
+[ -f /etc/sysconfig/blockdev ] || exit 0
 
+blockdevs=$(awk -F= '!/^#/ && !/^$/ {if ($2) print $1}' /etc/sysconfig/blockdev)
 if [ -z "$blockdevs" ]; then
        case "$1" in
        start|stop|restart|force-reload)
This page took 0.208346 seconds and 4 git commands to generate.