File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 14
14
rm $pklapath
15
15
service polkit restart
16
16
fi
17
- fi
18
- # check linux distribution
19
- distro=$( grep ' ^ID=' /etc/os-release | cut -d = -f 2)
20
17
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
+
25
30
fi
26
31
27
32
33
+
Original file line number Diff line number Diff line change 34
34
35
35
# check linux distribution
36
36
distro=$( grep ' ^ID=' /etc/os-release | cut -d = -f 2)
37
+ version=$( grep " VERSION_ID" /etc/os-release | cut -d " =" -f 2)
37
38
38
39
# 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 \" "
40
41
then
41
42
systemctl restart udev
42
43
fi
You can’t perform that action at this time.
0 commit comments