From fa01e03fe155293a91ef95add7fd9768b89ee577 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 21 May 2020 12:17:01 +0300 Subject: init: read rc.conf only if it exists --- rc.shutdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.shutdown') diff --git a/rc.shutdown b/rc.shutdown index 7f99c4c..82aaff4 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -1,8 +1,8 @@ #!/bin/sh # shellcheck disable=1090,1091 -. /etc/init/rc.conf . /usr/lib/init/rc.lib +[ -f /etc/init/rc.conf ] && . /etc/init/rc.conf run_hook pre.shutdown -- cgit v1.2.3