seb rev 3
Add examples folder with initfs-scratch (like in 2007 scratchbook)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Mar 06 16:31:59 2017 +0100 (2017-03-06) |
parents | acbb8e63347b |
children | 76b480637165 |
files | examples/build.conf examples/initfs-scratch/etc/busybox.conf examples/initfs-scratch/etc/fstab examples/initfs-scratch/etc/httpd.conf examples/initfs-scratch/etc/init.d/rcS examples/initfs-scratch/etc/inittab examples/initfs-scratch/etc/nsswitch.conf examples/initfs-scratch/etc/seb-os.conf examples/initfs-scratch/var/www/cgi-bin/index.cgi examples/initfs-scratch/var/www/index.html |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/build.conf Mon Mar 06 16:31:59 2017 +0100 1.3 @@ -0,0 +1,5 @@ 1.4 +# Seb builder config file 1.5 + 1.6 +work="$PWD" 1.7 +iso="seb-testing.iso" 1.8 +linux="/boot/vmlinuz-$(uname -r)"
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/examples/initfs-scratch/etc/busybox.conf Mon Mar 06 16:31:59 2017 +0100 2.3 @@ -0,0 +1,12 @@ 2.4 +# /etc/busybox.conf: SliTaz GNU/linux Busybox configuration. 2.5 +# 2.6 + 2.7 +[SUID] 2.8 +# Allow command to be run by anyone. 2.9 +su = ssx root.root 2.10 +passwd = ssx root.root 2.11 +loadkmap = ssx root.root 2.12 +mount = ssx root.root 2.13 +reboot = ssx root.root 2.14 +halt = ssx root.root 2.15 +poweroff = ssx root.root
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/examples/initfs-scratch/etc/fstab Mon Mar 06 16:31:59 2017 +0100 3.3 @@ -0,0 +1,8 @@ 3.4 +# /etc/fstab: information about static file system. 3.5 +# 3.6 +proc /proc proc defaults 0 0 3.7 +sysfs /sys sysfs defaults 0 0 3.8 +devpts /dev/pts devpts defaults 0 0 3.9 +tmpfs /dev/shm tmpfs defaults 0 0 3.10 +tmpfs /run tmpfs defaults 0 0 3.11 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/examples/initfs-scratch/etc/httpd.conf Mon Mar 06 16:31:59 2017 +0100 4.3 @@ -0,0 +1,36 @@ 4.4 +# /etc/httpd.conf: Seb-OS Busybox HTTP web server configuration file. 4.5 + 4.6 +# Server root. 4.7 +H:/var/www 4.8 + 4.9 +# Allow address. 4.10 +A:192.168. 4.11 + 4.12 +# File to open by default. 4.13 +I:index.html 4.14 + 4.15 +# Path to the 404 error page. 4.16 +E404:/var/www/404.html 4.17 + 4.18 +# Require user root on urls starting with /adm/. use passwd system db 4.19 +/adm:root:* 4.20 + 4.21 +# Reverse proxy. 4.22 +#P:/url:[http://]hostname[:port]/new/path 4.23 + 4.24 +# CGI interpreter path. 4.25 +*.sh:/bin/sh 4.26 +*.cgi:/bin/sh 4.27 +#*.py:/usr/bin/python 4.28 +#*.php:/usr/bin/php-cgi 4.29 + 4.30 +# MIME type. 4.31 +.txt:text/plain 4.32 +.css:text/css 4.33 +.xml:text/xml 4.34 +.png:image/png 4.35 +.jpg:image/jpeg 4.36 +.tgz:application/x-tgz 4.37 +.tar.gz:application/x-tgz 4.38 +.tazpkg:application/x-tazpkg 4.39 +.sup:application/x-sup
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/examples/initfs-scratch/etc/init.d/rcS Mon Mar 06 16:31:59 2017 +0100 5.3 @@ -0,0 +1,21 @@ 5.4 +#! /bin/sh 5.5 +# 5.6 +# Main boot script for your SliTaz Embedded System 5.7 +# 5.8 +. /lib/libseb.sh 5.9 +. /etc/seb-os.conf 5.10 + 5.11 +colorize 33 "Processing /etc/init.d/rcS..." 5.12 + 5.13 +/bin/mount proc 5.14 +/bin/mount -a 5.15 + 5.16 +/sbin/mdev -s 5.17 +/bin/hostname ${host_name} 5.18 + 5.19 +/sbin/ifconfig lo 127.0.0.1 up 5.20 +/sbin/loadkmap < /usr/share/kmap/default 5.21 + 5.22 +sleep 1 5.23 +echo -e "\nWelcome to SliTaz Embedded System" 5.24 +boldify "Login: root"
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/examples/initfs-scratch/etc/inittab Mon Mar 06 16:31:59 2017 +0100 6.3 @@ -0,0 +1,11 @@ 6.4 +# /etc/inittab: init configuration for SliTaz GNU/Linux. 6.5 + 6.6 +::sysinit:/etc/init.d/rcS 6.7 + 6.8 +# getty respawn shell invocations for selected ttys 6.9 +tty1::respawn:/sbin/getty 38400 tty1 6.10 +tty2::askfirst:-/bin/sh 6.11 + 6.12 +::ctrlaltdel:/bin/umount -a -r 6.13 +::ctrlaltdel:/sbin/reboot 6.14 +
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/examples/initfs-scratch/etc/nsswitch.conf Mon Mar 06 16:31:59 2017 +0100 7.3 @@ -0,0 +1,10 @@ 7.4 +# /etc/nsswitch.conf: GNU Name Service Switch config. 7.5 +# 7.6 + 7.7 +passwd: files 7.8 +group: files 7.9 +shadow: files 7.10 + 7.11 +hosts: files dns 7.12 +networks: files 7.13 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/examples/initfs-scratch/etc/seb-os.conf Mon Mar 06 16:31:59 2017 +0100 8.3 @@ -0,0 +1,12 @@ 8.4 +# /etc/seb-os.conf: SliTaz Embedded OS main configuration file 8.5 +# 8.6 + 8.7 +# Hostame 8.8 +host_name="seb" 8.9 + 8.10 +# Network interface 8.11 +network_interface="eth0" 8.12 + 8.13 +# Initialization scripts to run at boot time 8.14 +run_scripts="" 8.15 +
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 9.2 +++ b/examples/initfs-scratch/var/www/cgi-bin/index.cgi Mon Mar 06 16:31:59 2017 +0100 9.3 @@ -0,0 +1,7 @@ 9.4 +#!/bin/sh 9.5 +. /usr/lib/slitaz/httphelper.sh 9.6 +header "Content-Type: text/plain" 9.7 + 9.8 +echo "Hello World!" 9.9 + 9.10 +exit 0
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 10.2 +++ b/examples/initfs-scratch/var/www/index.html Mon Mar 06 16:31:59 2017 +0100 10.3 @@ -0,0 +1,11 @@ 10.4 +<!DOCTYPE html> 10.5 +<html lang="en"> 10.6 +<head> 10.7 + <meta charset="utf-8" /> 10.8 + <title>Seb-OS Server</title> 10.9 +</head> 10.10 +<body> 10.11 +<h1>Seb-OS Server</h1> 10.12 +<p>File: /index.html</p> 10.13 +</body> 10.14 +</html>