Skip to content

Commit 6ddd9d4

Browse files
author
pruebas
committed
mejorado parche para ubuntu 17.10
1 parent c9ecf6b commit 6ddd9d4

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

aux_scripts/check_shutforced.sh

100644100755
Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ then
1414
rm $pklapath
1515
service polkit restart
1616
fi
17-
fi
18-
#check linux distribution
19-
distro=$(grep '^ID=' /etc/os-release | cut -d = -f 2)
2017

21-
if test "$distro" = "ubuntu"
22-
then
23-
#Restart udev
24-
systemctl restart udev
18+
#check linux distribution and version
19+
distro=$(grep '^ID=' /etc/os-release | cut -d = -f 2)
20+
version=$(grep "VERSION_ID" /etc/os-release | cut -d "=" -f 2)
21+
22+
if test $distro = "ubuntu" && test $version = "\"17.10\""
23+
then
24+
#Restart udev
25+
systemctl restart udev
26+
fi
27+
28+
29+
2530
fi
2631

2732

33+

installer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ fi
3434

3535
#check linux distribution
3636
distro=$(grep '^ID=' /etc/os-release | cut -d = -f 2)
37+
version=$(grep "VERSION_ID" /etc/os-release | cut -d "=" -f 2)
3738

3839
#if distribution is Ubuntu or Linux Mint, restart udev
39-
if test "$distro" = "ubuntu" || test "$distro" = "linuxmint"
40+
if test "$distro" = "ubuntu" && test "$version" = "\"17.10\""
4041
then
4142
systemctl restart udev
4243
fi

0 commit comments

Comments
 (0)