blob: a5e640ae14ad8499b2a2833d670407f8861fcffc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
echo "############### common-base.post ################"
######### multiuser mode: create additional users and fix their homedirs
if ! generic_base_user_exists owner; then
gum-utils --offline --add-user --username=owner --usertype=admin --usecret=tizen
fi
for user in alice bob carol guest; do
if ! generic_base_user_exists $user; then
gum-utils --offline --add-user --username="$user" --usertype=normal --usecret=tizen
fi
done
######### add 'guest' user that runs bt-service daemon to vconf_bt group
function mygetid() { sed '/^'"$1"':/!d;s/^\([^:]*:\)\{2\}\([^:]*\):.*$/\2/' "$2"; }
function mygetuid() { mygetid "$1" /etc/passwd; }
function mygetgid() { mygetid "$1" /etc/group; }
gum-utils --offline --add-member --gid=$(mygetgid vconf_bt) --mem_uid=$(mygetuid guest)
|