diff options
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/hal/Pkgfile | 2 | ||||
-rw-r--r-- | extra/hal/pre-install | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/extra/hal/Pkgfile b/extra/hal/Pkgfile index 350cd6c00..677eb6468 100755 --- a/extra/hal/Pkgfile +++ b/extra/hal/Pkgfile @@ -2,7 +2,7 @@ # URL: http://freedesktop.org/wiki/Software_2fhal # Maintainer: NuTyX coreteam # Packager: thierryn1 at hispeed dot ch -# Depends on: dbus-glib, glib, usbutils, pciutils, libusb, eject, hal-info +# Depends on: dbus-glib, glib, usbutils, pciutils, libusb, eject, hal-info, gperf name=hal version=0.5.13 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 + |