CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sylpheed: initial import (verified compilation)
[attic/ports/opt-cross.git] / hal / pre-install
1 #!/bin/sh
2
3 # check for haldaemon group or add one
4 getent group haldaemon || /usr/sbin/groupadd -g 82 haldaemon
5
6 # check for plugdev group or add one
7 getent group plugdev || /usr/sbin/groupadd plugdev
8
9 # check for haldaemon user or add one
10 getent passwd haldaemon || /usr/sbin/useradd -g haldaemon -u 82 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon
11
12 # lock the account
13 /usr/bin/passwd -l haldaemon