diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-28 15:23:01 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-30 05:07:02 +0000 |
commit | 51903da07338928e15c8c7963b18968954f4dd06 (patch) | |
tree | 90e62708215d37821415477d7eaf4eca555fa39d /functions | |
parent | a8a6addaf5405ed68cc6132522f09aa6bf5079e5 (diff) | |
download | vyos-live-build-51903da07338928e15c8c7963b18968954f4dd06.tar.gz vyos-live-build-51903da07338928e15c8c7963b18968954f4dd06.zip |
init: warn if auto script exists but is not executable
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/init.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/init.sh b/functions/init.sh index 1fbbd9308..cc70e91fa 100755 --- a/functions/init.sh +++ b/functions/init.sh @@ -79,5 +79,7 @@ Maybe_auto_redirect () Echo_message "Executing ${AUTO_SCRIPT} script." ./"${AUTO_SCRIPT}" "${@}" exit ${?} + elif [ -f "${AUTO_SCRIPT}" ]; then + Echo_warning "The ${AUTO_SCRIPT} script exists but is not executable, ignoring." fi } |