mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Added function to automatically check and add user to dialout group
This commit is contained in:
@@ -462,7 +462,16 @@ echo "100% Complete"
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function add_dialout() {
|
||||||
|
|
||||||
|
if $(id | grep dialout); then
|
||||||
|
echo "User already a member of Dialout"; return
|
||||||
|
else
|
||||||
|
echo "Adding user to dialout group"
|
||||||
|
sudo usermod -a -G dialout $USER ||
|
||||||
|
{ ERRCODE="Unable to add user to dialout group. You will need to run sudo usermod -a -G dialout $USER"; errors; return; }
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#Deterimine computer type.
|
#Deterimine computer type.
|
||||||
@@ -4009,6 +4018,7 @@ exit 1
|
|||||||
set_screen_size
|
set_screen_size
|
||||||
check_installed_programs
|
check_installed_programs
|
||||||
query_updates
|
query_updates
|
||||||
|
add_dialout
|
||||||
primer_menu
|
primer_menu
|
||||||
#notify_sources_menu
|
#notify_sources_menu
|
||||||
system_update_menu
|
system_update_menu
|
||||||
|
|||||||
Reference in New Issue
Block a user