summaryrefslogtreecommitdiff
path: root/etc/mklocaluser.d/60-itzks-systems-tablet_add-to-local-groups
blob: da21948d776f0cd13faea23ded870da8904b8856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

groups="audio bluetooth cdrom dip plugdev video netdev scanner lpadmin"

# add additional user account
if [ -n "$USER" ]; then

	if getent passwd $USER 1>/dev/null; then
		for g in $groups; do
			adduser $USER $g
		done
	fi

fi