Skip to content

Commit

Permalink
anadidos comentarios en varios scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmuHS committed Feb 18, 2018
1 parent e43309a commit 73b898b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ udevadm control --reload-rules
#Copy polkit rules
if test $(pkaction --version | cut -d " " -f 3 | cut -d "." -f 2) -ge 106
then
#If polkit version is >= 0.106, copy rules file
cp 10-*shutdown.rules /usr/share/polkit-1/rules.d/
else
#if polkit version is < 0.106 copy pkla file to a temporal directory
cp 50-inhibit-shutdown.pkla /tmp
fi
1 change: 1 addition & 0 deletions usbdevgone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ then
#if file is empty, remove it
rm $filepath

#if polkit version is < 0.106, remove pkla file to disable polkit rule
if test $(pkaction --version | cut -d " " -f 3 | cut -d "." -f 2) -lt 106
then
rm /etc/polkit-1/localauthority/50-local.d/50-inhibit-shutdown.pkla
Expand Down

0 comments on commit 73b898b

Please sign in to comment.