summaryrefslogtreecommitdiffstats
path: root/extra/hal/pre-install
blob: dd3fc113e4134765d79607f181db33f93b7b76d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# check for haldaemon group or add one
getent group haldaemon || /usr/sbin/groupadd -g 19 haldaemon

# check for plugdev group or add one
getent group plugdev || /usr/sbin/groupadd -g 63 plugdev

# check for haldaemon user or add one
getent passwd haldaemon || /usr/sbin/useradd -g haldaemon -u 19 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon

# lock the account
/bin/passwd -l haldaemon