Skip to content

Commit

Permalink
install: check for slmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-proust committed Feb 18, 2013
1 parent 474dc28 commit ab6bb3a
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions install
@@ -1,11 +1,19 @@
#!/bin/bash
#!/bin/sh

if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root!"
exit 1
if which amixer >/dev/null
then
if [ "$(id -u)" != "0" ]
then
echo "This script must be run as root!"
exit 1
else
cd src
install -m755 sldm /usr/bin/
install -Dm644 sldmrc /etc/sldmrc
install -Dm755 zzz-sldm-profile.sh /etc/profile.d/zzz-sldm-profile.sh
fi
else
cd src
install -m755 sldm /usr/bin/
install -Dm644 sldmrc /etc/sldmrc
install -Dm755 zzz-sldm-profile.sh /etc/profile.d/zzz-sldm-profile.sh
echo "sldm requires slmenu to work. Please install slmenu (https://bitbucket.org/rafaelgg/slmenu)"
exit 1
fi

0 comments on commit ab6bb3a

Please sign in to comment.