summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpico.dev <pico.dev@gmail.com>2020-09-03 15:55:59 +0200
committerpico.dev <pico.dev@gmail.com>2020-09-03 15:55:59 +0200
commit877881a35cf90d8e5c3712ffd80e94e2f3a497cb (patch)
tree27569a9ae1ee70acd50a9fe363cb8eb43f8d60cd
parent67aec71b2c1bb59db0519b1265613d1f732eeb66 (diff)
Minor fixes
-rwxr-xr-xalis.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/alis.sh b/alis.sh
index 2288002..df6800e 100755
--- a/alis.sh
+++ b/alis.sh
@@ -654,7 +654,9 @@ function mkinitcpio_configuration() {
if [ "$FRAMEBUFFER_COMPRESSION" == "true" ]; then
OPTIONS="$OPTIONS enable_fbc=1"
fi
- echo "options i915 $OPTIONS" > /mnt/etc/modprobe.d/i915.conf
+ if [ -n "$OPTIONS"]; then
+ echo "options i915 $OPTIONS" > /mnt/etc/modprobe.d/i915.conf
+ fi
fi
if [ "$LVM" == "true" ]; then