Commit 195dbce 1 parent 2495560 commit 195dbce Copy full SHA for 195dbce
File tree 2 files changed +2
-2
lines changed
src/main/deploy/package/linux
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ case "$1" in
31
31
if ! groups " ${SUDO_USER:- $(whoami)} " | grep -q plugdev; then
32
32
usermod -aG plugdev " ${SUDO_USER:- $(whoami)} "
33
33
fi
34
- if [ -x /bin/udevadm ]; then
34
+ if [ -w /sys/devices ] && [ -w /sys/kernel/uevent_seqnum ] && [ - x /bin/udevadm ]; then
35
35
/bin/udevadm control --reload
36
36
/bin/udevadm trigger
37
37
fi
Original file line number Diff line number Diff line change 86
86
if ! groups " ${SUDO_USER:- $(whoami)} " | grep -q plugdev; then
87
87
usermod -aG plugdev " ${SUDO_USER:- $(whoami)} "
88
88
fi
89
- if [ -x /bin/udevadm ]; then
89
+ if [ -w /sys/devices ] && [ -w /sys/kernel/uevent_seqnum ] && [ - x /bin/udevadm ]; then
90
90
/bin/udevadm control --reload
91
91
/bin/udevadm trigger
92
92
fi
You can’t perform that action at this time.
0 commit comments