diff --git a/install.sh b/install.sh index 2d14496..f68ee25 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,9 @@ install -m 755 -o root k290_fnkeyctl /usr/local/sbin/ if [ -d /etc/udev/rules.d ]; then install -m 644 -o root 99-k290-config.rules /etc/udev/rules.d/ fi -install -m 755 -o root k290-fnkeyctl.sh /usr/lib/systemd/system-sleep/ +if [ -d /usr/lib/systemd/system-sleep/ ]; then + install -m 755 -o root k290-fnkeyctl.sh /usr/lib/systemd/system-sleep/ +fi if [ -d /etc/pm/sleep.d ]; then install -m 755 -o root 20-k290.sh /etc/pm/sleep.d/ fi