summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-11-12 03:53:04 +0300
committerMaxim Devaev <[email protected]>2021-11-12 03:53:04 +0300
commita3812dda699d404d2b298a3ce2012d3d3335dd81 (patch)
treea8d0f84f8f40f9685a0048cde9ba31a2fc3f2a9f
parent6118eadec662d7b0db7161ee788f63aa970e8454 (diff)
renamed scripts directory
-rw-r--r--PKGBUILD2
-rwxr-xr-xscripts/kvmd-bootconfig10
2 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6031b6a4..8819639d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -153,7 +153,7 @@ package_kvmd() {
install -Dm644 -t "$pkgdir/etc/kvmd" "$_cfg_default/kvmd"/*.yaml
install -Dm600 -t "$pkgdir/etc/kvmd" "$_cfg_default/kvmd"/*passwd
install -Dm644 -t "$pkgdir/etc/kvmd" "$_cfg_default/kvmd"/web.css
- mkdir -p "$pkgdir/etc/kvmd/"{override.d,bootconfig.d}
+ mkdir -p "$pkgdir/etc/kvmd/override.d"
mkdir -p "$pkgdir/var/lib/kvmd/msd"
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig
index fe76928c..8a400405 100755
--- a/scripts/kvmd-bootconfig
+++ b/scripts/kvmd-bootconfig
@@ -135,10 +135,12 @@ fi
# ========== Custom scripts ==========
-mkdir -p /boot/kvmd-bootconfig.d
-for script in `ls /etc/kvmd/bootconfig.d | sort`; do
- /boot/kvmd-bootconfig.d/"$script" || true
-done
+
+if [ -d /boot/pikvm-scripts.d ]; then
+ for script in `ls /boot/pikvm-scripts.d | sort`; do
+ /boot/pikvm-scripts.d/"$script" || true
+ done
+fi
# ========== Finish ==========