From 8ff69e2800b4a4cda10efe99027a049fa6fcbdae Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 15 Jan 2020 22:41:50 +0300 Subject: Echo the file being executed --- rc.boot | 3 ++- rc.shutdown | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rc.boot b/rc.boot index 92dbf1b..40e74ed 100755 --- a/rc.boot +++ b/rc.boot @@ -157,7 +157,8 @@ out "Loading sysctl settings..."; { out "Running boot hooks..." set +f for file in /etc/init/*.boot ; do - [ -f "$file" ] && . "$file" + [ -f "$file" ] && \ + out "Running $file" && . "$file" done out "Running rc.local..."; { diff --git a/rc.shutdown b/rc.shutdown index d91578f..6413da5 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -12,7 +12,8 @@ out "Waiting for services to stop..."; { out "Running pre shutdown hooks..." for file in /etc/init/*.pre.shutdown ; do - [ -f "$file" ] && . "$file" + [ -f "$file" ] && \ + out "Running $file" && . "$file" done out "Saving random seed..."; { @@ -51,5 +52,6 @@ out "Deactivating dmcrypt devices (if any exist)."; { out "Running post shutdown hooks..."; for file in /etc/init/*.post.shutdown ; do - [ -f "$file" ] && . "$file" + [ -f "$file" ] && \ + out "Running $file" && . "$file" done -- cgit v1.2.3