Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d If /etc/iscsi/volumes does not exist, explicitly ex...



details:   https://anonhg.NetBSD.org/src/rev/1f35978ce8be
branches:  trunk
changeset: 373373:1f35978ce8be
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Feb 06 11:53:03 2023 +0000

description:
If /etc/iscsi/volumes does not exist, explicitly exit with 0 status

diffstat:

 etc/rc.d/iscsid_volumes |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r eb3b95a1ffd2 -r 1f35978ce8be etc/rc.d/iscsid_volumes
--- a/etc/rc.d/iscsid_volumes   Mon Feb 06 10:33:32 2023 +0000
+++ b/etc/rc.d/iscsid_volumes   Mon Feb 06 11:53:03 2023 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: iscsid_volumes,v 1.1 2023/02/03 13:53:40 mlelstv Exp $
+# $NetBSD: iscsid_volumes,v 1.2 2023/02/06 11:53:03 martin Exp $
 #
 
 # PROVIDE: iscsid_volumes
@@ -16,7 +16,7 @@
 
 iscsid_volumes_start()
 {
-       test -f /etc/iscsi/volumes || return
+       test -f /etc/iscsi/volumes || return 0
 
        while read host target digest auth user alias; do
                case $host in
@@ -78,7 +78,7 @@
 
 iscsid_volumes_stop()
 {
-       test -f /etc/iscsi/volumes || return
+       test -f /etc/iscsi/volumes || return 0
 
        while read host target digest auth user alias; do
                case $host in



Home | Main Index | Thread Index | Old Index