X-Git-Url: http://gitweb/?a=blobdiff_plain;f=hal%2Frc.hald;h=f340aa3354a25963b6aae9ebcfda2449edc45006;hb=021b09a88088ef036945348a9901923bea28c446;hp=43629ddd1ce3ad2fa7398fdc376efd7b25c4c96f;hpb=2dd67de03ec9c034cc805a8946ec4a417ac3b87a;p=attic%2Fports%2Fopt-cross.git diff --git a/hal/rc.hald b/hal/rc.hald index 43629dd..f340aa3 100644 --- a/hal/rc.hald +++ b/hal/rc.hald @@ -3,21 +3,26 @@ # /etc/rc.d/hald: start/stop HAL daemon # +# fix owner/group permisions +if ! find /var/lib/hal -user haldaemon -group haldaemon 2>/dev/null; then + chown haldaemon:haldaemon $PKG/var/lib/hal +fi + case $1 in - start) - /usr/sbin/hald --daemon=yes --use-syslog - ;; - stop) - killall -q /usr/sbin/hald - ;; - restart) - $0 stop - sleep 2 - $0 start - ;; - *) - echo "Usage: $0 [start|stop|restart]" - ;; + start) + /usr/sbin/hald --daemon=yes --use-syslog + ;; + stop) + killall -q /usr/sbin/hald + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "Usage: $0 [start|stop|restart]" + ;; esac # End of file