You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding global read/write permissions to LabJack device rules.
The installer now installs 90-labjack.rules with global read/write permissions to LabJack devices. It also unistalls 10-labjack.rules and no longer cares about adding a user to the adm group.
echo"Please manually restart the device rules or restart your computer now."
46
-
elif [ $NEED_RELOG-eq$TRUE ];then
47
-
echo"Please log off and log back in for the group changes to take effect. To confirm the group changes have taken effect, enter the command:"
48
-
echo" $ groups"
49
-
echo"and make sure $GROUP is in the list. (You probably have to log out of your entire account, not just your shell.)"
50
45
fi
51
46
exit$e
52
47
}
@@ -73,6 +68,9 @@ go cd ../
73
68
#################
74
69
# LabJack Rules #
75
70
#################
71
+
rm -f $RULES_DEST_PRIMARY/$OLD_RULES
72
+
rm -f $RULES_DEST_ALTERNATE/$OLD_RULES
73
+
76
74
if [ -d$RULES_DEST_PRIMARY ];then
77
75
RULES_DEST=$RULES_DEST_PRIMARY
78
76
@@ -117,81 +115,4 @@ else
117
115
echo# Finishes previous echo -n
118
116
fi
119
117
120
-
#####################
121
-
# Add user to group #
122
-
#####################
123
-
user=`logname`
124
-
125
-
in_group=$FALSE
126
-
forgin`id -nG $user`;do
127
-
if [ "$g"=="$GROUP" ];then
128
-
in_group=$TRUE
129
-
break
130
-
fi
131
-
done
132
-
133
-
if [ $in_group-eq$TRUE ];then
134
-
# Make sure the user is logged into the adm group
135
-
current_groups=$FALSE
136
-
forgin`groups $user`;do
137
-
if [ "$g"=="$GROUP" ];then
138
-
current_groups=$TRUE
139
-
break
140
-
fi
141
-
done
142
-
if [ $current_groups-ne$TRUE ];then
143
-
NEED_RELOG=$TRUE
144
-
fi
145
-
146
-
success
147
-
fi
148
-
149
-
echo"Adding $user to the $GROUP group.."
150
-
NEED_RELOG=$TRUE
151
-
152
-
declare -a tasks=("add/create a group named $GROUP ($ groupadd -f $GROUP)""add your user account to the group named $GROUP ($ usermod -a -G $GROUP$user)")
153
-
154
-
print_tasks_if_needed()
155
-
{
156
-
ret=$?
157
-
if [ $ret-ne 0 ];then
158
-
echo
159
-
echo"It looks like this installer failed with only a few task(s) left to complete."
160
-
echo"LabJack developed this installer on Ubuntu/Debian Linux, so if you are running"
161
-
echo"Ubuntu/Debian, please contact LabJack. However, if you are running a"
162
-
echo"different distribution of Linux, it is likely that your distribution varies"
163
-
echo"enough to make these last task(s) fail."
164
-
echo
165
-
echo"You can search the internet for how to complete the following task(s) on your"
166
-
echo"distribution of Linux:"
167
-
fornin"${tasks[@]}";do
168
-
echo" - $n"
169
-
done
170
-
echo
171
-
echo"Where the Ubuntu/Debian commands for the tasks are in parenthesis."
172
-
echo
173
-
echo"Once these tasks are complete, your installation of Exodriver will be complete."
174
-
echo
175
-
echo"If you are on a common distribution of Linux or if you are not sure how to"
176
-
echo"complete the above task(s), please contact LabJack support. If your"
177
-
echo"distribution of Linux is old, consider upgrading to see if that solves the"
0 commit comments