cookutils rev 165
Make the daemon script indepandant so not need to install cookutils on host (pkg: cookutils-daemon)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 15 16:01:59 2011 +0200 (2011-05-15) |
parents | cd039ff446c4 |
children | 216d991caed1 |
files | init.d/cooker |
line diff
1.1 --- a/init.d/cooker Sun May 15 15:55:10 2011 +0200 1.2 +++ b/init.d/cooker Sun May 15 16:01:59 2011 +0200 1.3 @@ -1,11 +1,14 @@ 1.4 #!/bin/sh 1.5 # /etc/init.d/cooker: Start, stop or restart Cooker daemon. 1.6 # 1.7 -. /etc/slitaz/cook.conf 1.8 + 1.9 +# This is the only real path we need for the daemon and it make it independant 1.10 +# from cookutils itself. 1.11 +SLITAZ="/home/slitaz" 1.12 1.13 case "$i" in 1.14 start) 1.15 - # When 4.0: for version in stable cooking undigest 1.16 + # When 4.0: version: stable cooking undigest 1.17 for version in cooking 1.18 do 1.19 if [ -d "$SLITAZ/$version/chroot" ]; then 1.20 @@ -27,6 +30,7 @@ 1.21 fi 1.22 done ;; 1.23 stop) 1.24 + # When 4.0: version: stable cooking undigest 1.25 for version in cooking 1.26 do 1.27 rootfs=$SLITAZ/$version/chroot