blob: 061ad71a4ecc63666d5f8cffc6388d8fa6c902ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
post_install() {
# Add regular users to audio and realtime groups if not already in
regular_users=$(getent group users | cut -d: -f4 | sed -e "s/,/ /g")
audio_groups="audio realtime"
for username in ${regular_users}; do
for audio_group in ${audio_groups}; do
if ! getent group ${audio_group} | grep &>/dev/null ${username}; then
gpasswd -a ${username} ${audio_group}
fi
done
done
}
post_upgrade() {
post_install
}
|