diff options
author | srepac <[email protected]> | 2021-11-11 14:50:04 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-12 01:50:04 +0300 |
commit | 6118eadec662d7b0db7161ee788f63aa970e8454 (patch) | |
tree | 6e90dc41e38c064bbbff8f7bb1d6868c7123f64c /scripts | |
parent | 8e60b8428814ffc8092a749a3d830d1f46309cae (diff) |
Update kvmd-bootconfig (#74)
Check for custom scripts inside /boot/kvmd-bootconfig.d directory since /boot is accessible by any client to allow users to drop custom scripts they want to run at boot.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kvmd-bootconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig index 98bcb4a4..fe76928c 100755 --- a/scripts/kvmd-bootconfig +++ b/scripts/kvmd-bootconfig @@ -135,8 +135,9 @@ fi # ========== Custom scripts ========== +mkdir -p /boot/kvmd-bootconfig.d for script in `ls /etc/kvmd/bootconfig.d | sort`; do - /etc/kvmd/bootconfig.d/"$script" || true + /boot/kvmd-bootconfig.d/"$script" || true done |