# HG changeset patch # User Christophe Lincoln # Date 1302301421 -7200 # Node ID bdb2dbfdba44f0756b362b881d6522759b4922df # Parent cf15cb2ff7159860bd8a6b097cf78a3977d4b909 Add boot.cgi (also latest commit have entry to change panel passwd diff -r cf15cb2ff715 -r bdb2dbfdba44 boot.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/boot.cgi Sat Apr 09 00:23:41 2011 +0200 @@ -0,0 +1,101 @@ +#!/bin/sh +# +# Boot CGI script - All what appens before login (grub, rcS, slim) +# +# Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 +# +echo "Content-Type: text/html" +echo "" + +# Common functions from libtazpanel and source main boot config file. +. lib/libtazpanel +. /etc/rcS.conf +get_config + +# Include gettext helper script. +. /usr/bin/gettext.sh + +# Export package name for gettext. +TEXTDOMAIN='tazpanel' +export TEXTDOMAIN + +TITLE="- Hardware" + +# +# Commands +# + +case "$QUERY_STRING" in + *) + # + # Everything until user login + # + . /etc/rcS.conf + TITLE="- Boot" + xhtml_header + debug_info + cat << EOT +
+

`gettext "Boot & startup"`

+

+ `gettext "Everything that appends before user login."` +

+
+ +

`gettext "Kernel cmdline"`

+
+`cat /proc/cmdline`
+
+EOT + # Demon list + table_start + cat << EOT + + + `gettext "Name"` + `gettext "Dessciption"` + `gettext "Status"` + + +EOT + for d in `echo $RUN_DAEMONS` + do + echo '' + echo "$d" + if [ -d "$LOCALSTATE/installed/$d" ]; then + . $LOCALSTATE/installed/$d/receipt + echo "$SHORT_DESC" + else + # Standard SliTaz deamons + case "$d" in + firewall) + gettext "SliTaz Firewall with iptable rules" ;; + hald) + . $LOCALSTATE/installed/hal/receipt + echo "$SHORT_DESC" ;; + *) + echo "N/A" ;; + esac + fi + # Running or not + if pidof $d; then + echo "`gettext \"Running\"` (`pidof $d`)" + else + gettext "Stopper" + fi + echo '' + done + + + table_end + cat << EOT +

`gettext "Local startup commands"`

+
+`cat /etc/init.d/local.sh`
+
+EOT + ;; +esac + +xhtml_footer +exit 0