From 597149168a93de71b1d21f68948cdea492b24660 Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Sun, 9 Dec 2018 05:08:16 +0000 Subject: [PATCH] Try Buster fstrim path if Stretch path not found This fixes a missing file error in InstallPackages.sh when running Buster. --- scripts/InstallScripts/InstallPackages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/InstallScripts/InstallPackages.sh b/scripts/InstallScripts/InstallPackages.sh index 3aa221b..79a75dd 100755 --- a/scripts/InstallScripts/InstallPackages.sh +++ b/scripts/InstallScripts/InstallPackages.sh @@ -101,7 +101,7 @@ cp -rf $DIR/30-touchpad.conf /etc/X11/xorg.conf.d/ apt clean && apt autoremove --purge #enable periodic TRIM -cp /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system +cp /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system || cp /lib/systemd/system/fstrim.{service,timer} /etc/systemd/system systemctl enable fstrim.timer dmesg -D