Skip to content

Commit 73b898b

Browse files
committed
anadidos comentarios en varios scripts
1 parent e43309a commit 73b898b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

installer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ udevadm control --reload-rules
1010
#Copy polkit rules
1111
if test $(pkaction --version | cut -d " " -f 3 | cut -d "." -f 2) -ge 106
1212
then
13+
#If polkit version is >= 0.106, copy rules file
1314
cp 10-*shutdown.rules /usr/share/polkit-1/rules.d/
1415
else
16+
#if polkit version is < 0.106 copy pkla file to a temporal directory
1517
cp 50-inhibit-shutdown.pkla /tmp
1618
fi

usbdevgone.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ then
1515
#if file is empty, remove it
1616
rm $filepath
1717

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

0 commit comments

Comments
 (0)