diff options
author | Fabian Bornschein | 2020-04-26 23:07:30 +0200 |
---|---|---|
committer | Fabian Bornschein | 2020-04-26 23:07:30 +0200 |
commit | a62d35c7f6340198e069c0858dd78c373a75ccbd (patch) | |
tree | 408a6d186c016ad98bdbb8896ee72644ec9c90a3 /game-devices-udev.install | |
parent | 117759137ed5e1dbc55c4cda310a1d16ebeb3bb8 (diff) | |
download | aur-a62d35c7f6340198e069c0858dd78c373a75ccbd.tar.gz |
fix package, sorry!
Diffstat (limited to 'game-devices-udev.install')
-rw-r--r-- | game-devices-udev.install | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/game-devices-udev.install b/game-devices-udev.install index efa8b52928a3..cad59ceda0e2 100644 --- a/game-devices-udev.install +++ b/game-devices-udev.install @@ -1,5 +1,8 @@ -post_install() -{ +pre_install() { + if [[ $(/usr/bin/lsb_release -is) != "Arch" ]] ; then exit 1; fi +} + +post_install() { ## Load uinput if it is not loaded already /usr/bin/grep -q 'uinput' /proc/modules if [ ! $? -eq 0 ] && [ -d "/lib/modules/$(uname -r)" ] @@ -9,12 +12,25 @@ post_install() ## reload udev rules /usr/bin/udevadm control --reload-rules + printf "\nThanks for using my pkg š\n\n" } -post_upgrade() -{ - post_install - +pre_upgrade() { + if [[ $(/usr/bin/lsb_release -is) != "Arch" ]] ; then exit 1; fi +} + +post_upgrade() { ## reload udev rules /usr/bin/udevadm control --reload-rules + printf "\nThanks for still using my pkg š\n\n" +} + +#pre_remove() { +#} + +post_remove() { + ## reload udev rules + /usr/bin/udevadm control --reload-rules + printf "\nYou need to reboot your system now" + printf "\nšļøšļø bye bye š\n\n" } |