summaryrefslogtreecommitdiff
path: root/hal/pre-install
blob: b28a6cc3fe1d3d2eafb85d4fc72aa20a0e658936 (plain)
    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

Generated by cgit