seb rev 18
Some fixes after booting frugal and testing
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 07 10:51:02 2017 +0100 (2017-03-07) |
parents | a4a124868212 |
children | 58aea7b2f307 |
files | examples/initfs-scratch/etc/daemons/httpd initfs/etc/init.d/rcS seb tools/sebos |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/initfs-scratch/etc/daemons/httpd Tue Mar 07 10:51:02 2017 +0100 1.3 @@ -0,0 +1,5 @@ 1.4 +#!/bin/sh 1.5 +desc="Busybox web server" 1.6 +start() { 1.7 + /usr/sbin/httpd -u 80:80 1.8 +}
2.1 --- a/initfs/etc/init.d/rcS Tue Mar 07 00:14:30 2017 +0100 2.2 +++ b/initfs/etc/init.d/rcS Tue Mar 07 10:51:02 2017 +0100 2.3 @@ -32,8 +32,11 @@ 2.4 device=$(echo $val | cut -d ":" -f 1) 2.5 path=$(echo $val | cut -d ":" -f 2) 2.6 echo "device: $device path: $path" 2.7 - if [ -f "$path" ]; then 2.8 - mount -o loop -t ext3 ${path} /home 2.9 + mountpoint=/media/$(basename $device) 2.10 + mkdir ${mountpoint} 2.11 + mount ${device} ${mountpoint} 2.12 + if [ -f "${mountpoint}$path" ]; then 2.13 + mount -o loop -t ext3 ${mountpoint}${path} /home 2.14 else 2.15 colorize 031 "Can't find sebhome.img virtual disk image" 2.16 fi ;;
3.1 --- a/seb Tue Mar 07 00:14:30 2017 +0100 3.2 +++ b/seb Tue Mar 07 10:51:02 2017 +0100 3.3 @@ -166,6 +166,7 @@ 3.4 networks: files 3.5 EOT 3.6 check 3.7 + mkdir -p ${rootfs}/etc/daemons 3.8 } 3.9 3.10 build() {
4.1 --- a/tools/sebos Tue Mar 07 00:14:30 2017 +0100 4.2 +++ b/tools/sebos Tue Mar 07 10:51:02 2017 +0100 4.3 @@ -171,7 +171,7 @@ 4.4 4.5 -d|daemon*) 4.6 # Handle daemons 4.7 - daemons="daemons" 4.8 + daemons="/etc/daemons" 4.9 if [ ! "$2" ]; then 4.10 title "Installed daemons" 4.11 for d in $(ls $daemons); do