* updated kmailtransport (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / wayland / seatd / seatd.init
blobb5ef1810b5603e28fd9160c7d0bd6b66c51b257d
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/seatd/seatd.init
3 # Copyright (C) 2021 - 2022 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: seatd daemon
14 # Runlevel: 98 rcX rc5
17 main_begin
19         block_begin(start, `Starting seatd')
20                 if [ -z "$(grep video /etc/group | cut -d: -f4)" ]
21                 then
22                         echo "Can't start seatd: video group is empty" \
23                         "Please add at least one user to the video group."
24 IN                      error=1
25                 else
26                         D_prefix/bin/seatd -g video &
27                 fi
28         block_end
30         block_begin(stop, `Stopping seatd')
31                 check(`killall D_prefix/bin/seatd')
32         block_end
34 main_end