CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
attic
/
ports
/
opt-cross.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
irssi: Initial import (verified compilation).
[attic/ports/opt-cross.git]
/
hal
/
rc.hald
diff --git
a/hal/rc.hald
b/hal/rc.hald
index 43629ddd1ce3ad2fa7398fdc376efd7b25c4c96f..f340aa3354a25963b6aae9ebcfda2449edc45006 100644
(file)
--- a/
hal/rc.hald
+++ b/
hal/rc.hald
@@
-3,21
+3,26
@@
# /etc/rc.d/hald: start/stop HAL daemon
#
# /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
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
esac
# End of file