# HG changeset patch # User Christophe Lincoln # Date 1305468119 -7200 # Node ID 4dec8953be057d5638ada3a41eb27a3adfa80a84 # Parent cd039ff446c4b5b894d9749ca2ced22498d9cd0a Make the daemon script indepandant so not need to install cookutils on host (pkg: cookutils-daemon) diff -r cd039ff446c4 -r 4dec8953be05 init.d/cooker --- a/init.d/cooker Sun May 15 15:55:10 2011 +0200 +++ b/init.d/cooker Sun May 15 16:01:59 2011 +0200 @@ -1,11 +1,14 @@ #!/bin/sh # /etc/init.d/cooker: Start, stop or restart Cooker daemon. # -. /etc/slitaz/cook.conf + +# This is the only real path we need for the daemon and it make it independant +# from cookutils itself. +SLITAZ="/home/slitaz" case "$i" in start) - # When 4.0: for version in stable cooking undigest + # When 4.0: version: stable cooking undigest for version in cooking do if [ -d "$SLITAZ/$version/chroot" ]; then @@ -27,6 +30,7 @@ fi done ;; stop) + # When 4.0: version: stable cooking undigest for version in cooking do rootfs=$SLITAZ/$version/chroot