# HG changeset patch # User Christophe Lincoln # Date 1488814319 -3600 # Node ID 1f29c7b8a4ce8584398decebc393741eff0511cd # Parent acbb8e63347bfc4e4d2b4bb73e7c462cd7c3c5f5 Add examples folder with initfs-scratch (like in 2007 scratchbook) diff -r acbb8e63347b -r 1f29c7b8a4ce examples/build.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/build.conf Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,5 @@ +# Seb builder config file + +work="$PWD" +iso="seb-testing.iso" +linux="/boot/vmlinuz-$(uname -r)" diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/busybox.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/busybox.conf Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,12 @@ +# /etc/busybox.conf: SliTaz GNU/linux Busybox configuration. +# + +[SUID] +# Allow command to be run by anyone. +su = ssx root.root +passwd = ssx root.root +loadkmap = ssx root.root +mount = ssx root.root +reboot = ssx root.root +halt = ssx root.root +poweroff = ssx root.root diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/fstab --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/fstab Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,8 @@ +# /etc/fstab: information about static file system. +# +proc /proc proc defaults 0 0 +sysfs /sys sysfs defaults 0 0 +devpts /dev/pts devpts defaults 0 0 +tmpfs /dev/shm tmpfs defaults 0 0 +tmpfs /run tmpfs defaults 0 0 + diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/httpd.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/httpd.conf Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,36 @@ +# /etc/httpd.conf: Seb-OS Busybox HTTP web server configuration file. + +# Server root. +H:/var/www + +# Allow address. +A:192.168. + +# File to open by default. +I:index.html + +# Path to the 404 error page. +E404:/var/www/404.html + +# Require user root on urls starting with /adm/. use passwd system db +/adm:root:* + +# Reverse proxy. +#P:/url:[http://]hostname[:port]/new/path + +# CGI interpreter path. +*.sh:/bin/sh +*.cgi:/bin/sh +#*.py:/usr/bin/python +#*.php:/usr/bin/php-cgi + +# MIME type. +.txt:text/plain +.css:text/css +.xml:text/xml +.png:image/png +.jpg:image/jpeg +.tgz:application/x-tgz +.tar.gz:application/x-tgz +.tazpkg:application/x-tazpkg +.sup:application/x-sup diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/init.d/rcS --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/init.d/rcS Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,21 @@ +#! /bin/sh +# +# Main boot script for your SliTaz Embedded System +# +. /lib/libseb.sh +. /etc/seb-os.conf + +colorize 33 "Processing /etc/init.d/rcS..." + +/bin/mount proc +/bin/mount -a + +/sbin/mdev -s +/bin/hostname ${host_name} + +/sbin/ifconfig lo 127.0.0.1 up +/sbin/loadkmap < /usr/share/kmap/default + +sleep 1 +echo -e "\nWelcome to SliTaz Embedded System" +boldify "Login: root" diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/inittab --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/inittab Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,11 @@ +# /etc/inittab: init configuration for SliTaz GNU/Linux. + +::sysinit:/etc/init.d/rcS + +# getty respawn shell invocations for selected ttys +tty1::respawn:/sbin/getty 38400 tty1 +tty2::askfirst:-/bin/sh + +::ctrlaltdel:/bin/umount -a -r +::ctrlaltdel:/sbin/reboot + diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/nsswitch.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/nsswitch.conf Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,10 @@ +# /etc/nsswitch.conf: GNU Name Service Switch config. +# + +passwd: files +group: files +shadow: files + +hosts: files dns +networks: files + diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/etc/seb-os.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/etc/seb-os.conf Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,12 @@ +# /etc/seb-os.conf: SliTaz Embedded OS main configuration file +# + +# Hostame +host_name="seb" + +# Network interface +network_interface="eth0" + +# Initialization scripts to run at boot time +run_scripts="" + diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/var/www/cgi-bin/index.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/var/www/cgi-bin/index.cgi Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,7 @@ +#!/bin/sh +. /usr/lib/slitaz/httphelper.sh +header "Content-Type: text/plain" + +echo "Hello World!" + +exit 0 diff -r acbb8e63347b -r 1f29c7b8a4ce examples/initfs-scratch/var/www/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/initfs-scratch/var/www/index.html Mon Mar 06 16:31:59 2017 +0100 @@ -0,0 +1,11 @@ + + + + + Seb-OS Server + + +

Seb-OS Server

+

File: /index.html

+ +