diff options
Diffstat (limited to 'extra/hal/pre-install')
-rw-r--r-- | extra/hal/pre-install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/hal/pre-install b/extra/hal/pre-install new file mode 100644 index 000000000..986157172 --- /dev/null +++ b/extra/hal/pre-install @@ -0,0 +1,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 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 + |