2 echo "#################### tv-users.post ##################"
5 /usr/sbin/useradd -m -G audio,video -c ',,,,guest' guest
8 /usr/sbin/usermod -c ',,,,normal' owner
10 # enable TLM (Tizen Login Manager) and generate tlm.conf
11 if [ -e /usr/lib/systemd/system/tlm.service ]; then
12 mkdir -p /usr/lib/systemd/system/multi-user.target.wants
13 ln -s ../tlm.service /usr/lib/systemd/system/multi-user.target.wants/tlm.service
15 cat > /etc/tlm.conf << EOF
16 # This file is generated by post script in .ks file.
19 # This group contains top-level settings.
23 # Name of the account plugin to use to manage(add/remove) guest user accounts
27 # Default: obtain from systemd
30 # Auto-login default user
34 # Prepare default/guest users before auto-login
38 # PAM service file to use
39 # PAM_SERVICE=tlm-login
41 # PAM service file for default user
42 # DEFAULT_PAM_SERVICE=tlm-default-login
44 # Default (guest) username or template to use
48 # DEFAULT_USER=guest_%S
50 # Session command : The command run after successfull login
52 # In case shell is not defined in /etc/passwd fallback is "systemd --user"
53 #SESSION_CMD=systemd --user
55 # Session termination timeout in seconds
59 # Setup terminal for session
63 # Use X11 style sessions
67 # Do not launch anything, let systemd handle it through PAM
71 # Specify session type, needs to be specified for
72 # XDG_SESSION_CLASS and XDG_SESSION_TYPE to be set
73 # Default: unspecified
77 # Seat specific settings where the group name is seat id
83 #SESSION_CMD=weston-launch
84 #DEFAULT_PAM_SERVICE=tlm-system-login
90 #DEFAULT_USER=guest_%S
94 # plugin specific settings.