[Debian-live-changes] r1049 - in configs/daniel: . config config/chroot_localhooks config/chroot_localincludes config/chroot_localincludes/etc config/chroot_localincludes/etc/X11 config/chroot_localincludes/etc/X11/wmii config/chroot_localincludes/usr config/chroot_localincludes/usr/local config/chroot_localincludes/usr/local/bin config/chroot_localpackageslists

Daniel Baumann daniel at alioth.debian.org
Fri Apr 13 06:55:21 UTC 2007


Author: daniel
Date: 2007-04-13 06:55:20 +0000 (Fri, 13 Apr 2007)
New Revision: 1049

Added:
   configs/daniel/config/
   configs/daniel/config/binary_localincludes/
   configs/daniel/config/bootstrap
   configs/daniel/config/chroot
   configs/daniel/config/chroot_localhooks/
   configs/daniel/config/chroot_localhooks/bash
   configs/daniel/config/chroot_localhooks/readline
   configs/daniel/config/chroot_localhooks/vim
   configs/daniel/config/chroot_localhooks/wmii
   configs/daniel/config/chroot_localhooks/xterm
   configs/daniel/config/chroot_localincludes/
   configs/daniel/config/chroot_localincludes/etc/
   configs/daniel/config/chroot_localincludes/etc/X11/
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/status
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem
   configs/daniel/config/chroot_localincludes/etc/X11/wmii/wallpaper
   configs/daniel/config/chroot_localincludes/usr/
   configs/daniel/config/chroot_localincludes/usr/local/
   configs/daniel/config/chroot_localincludes/usr/local/bin/
   configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
   configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
   configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
   configs/daniel/config/chroot_localincludes/usr/local/bin/halt
   configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
   configs/daniel/config/chroot_localincludes/usr/local/bin/pss
   configs/daniel/config/chroot_localincludes/usr/local/bin/reboot
   configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk
   configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem
   configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
   configs/daniel/config/chroot_localincludes/usr/local/bin/vis
   configs/daniel/config/chroot_localpackages/
   configs/daniel/config/chroot_localpackageslists/
   configs/daniel/config/chroot_localpackageslists/daniel
   configs/daniel/config/chroot_sources/
   configs/daniel/config/common
   configs/daniel/config/image
Log:


Added: configs/daniel/config/bootstrap
===================================================================
--- configs/daniel/config/bootstrap	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/bootstrap	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,37 @@
+# config/bootstrap: configuration for lh_bootstrap_*
+
+# $LIVE_ARCHITECTURE: select the chroot architecture
+# (Default: autodetected)
+LIVE_ARCHITECTURE="i386"
+
+# $LIVE_DISTRIBUTION: select the distribution to use
+# (Default: etch)
+LIVE_DISTRIBUTION="etch"
+
+# $LIVE_DISTRIBUTION_CONFIG: set distribution config directory
+# (Default: empty)
+LIVE_DISTRIBUTION_CONFIG=""
+
+# $LIVE_BOOTSTRAP_FLAVOUR: select the flavour to use
+# (Default: standard)
+LIVE_BOOTSTRAP_FLAVOUR="standard"
+
+# $LIVE_MIRROR_BUILD: set the mirror to fetch packages from
+# (Default: http://10.0.0.11/ftp.debian.org/debian)
+LIVE_MIRROR_BUILD="http://10.0.0.11/ftp.debian.org/debian"
+
+# $LIVE_MIRROR_BUILD_SECURITY: set the security mirror to fetch packages from
+# (Default: http://security.debian.org/)
+LIVE_MIRROR_BUILD_SECURITY="http://10.0.0.11/ftp.debian.org/debian-security/"
+
+# $LIVE_MIRROR_IMAGE: set the mirror which ends up in the image
+# (Default: http://ftp.debian.org/debian/)
+LIVE_MIRROR_IMAGE="http://ftp.debian.org/debian/"
+
+# $LIVE_MIRROR_IMAGE_SECURITY: set the security mirror which ends up in the image
+# (Default: http://security.debian.org/)
+LIVE_MIRROR_IMAGE_SECURITY="http://security.debian.org/"
+
+# $LIVE_SECTIONS: select the section(s) to use
+# (Default: main)
+LIVE_SECTIONS="main contrib non-free"

Added: configs/daniel/config/chroot
===================================================================
--- configs/daniel/config/chroot	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,45 @@
+# config/chroot: configuration for lh_chroot_*
+
+# $LIVE_KERNEL_FLAVOUR: set the kernel flavour to use
+# (Default: autodetected)
+LIVE_KERNEL_FLAVOUR="686"
+
+# $LIVE_KERNEL_PACKAGES: set the kernel packages to use
+# (Default: autodetected)
+LIVE_KERNEL_PACKAGES="linux-image-2.6 squashfs-modules-2.6 unionfs-modules-2.6"
+
+# $LIVE_KEYRING_PACKAGES: set the keyring packages
+# (Default: empty)
+LIVE_KEYRING_PACKAGES=""
+
+# $LIVE_LANGUAGE: set the language to use
+# (Default: empty)
+LIVE_LANGUAGE=""
+
+# $LIVE_PACKAGES: set the packages to install
+# (Default: empty)
+LIVE_PACKAGES=""
+
+# $LIVE_PACKAGES_LISTS: set the package list to install
+# (Default: standard)
+LIVE_PACKAGES_LISTS="standard"
+
+# $LIVE_TASKS: set the tasks to install
+# (Default: empty)
+LIVE_TASKS=""
+
+# $LIVE_SECURITY: enable security updates
+# (Default: enabled)
+LIVE_SECURITY="enabled"
+
+# $LIVE_SYMLINKS: enable symlink convertion
+# (Default: disabled)
+LIVE_SYMLINKS="disabled"
+
+# $LIVE_SYSVINIT: enable sysvinit
+# (Default: disabled)
+LIVE_SYSVINIT="disabled"
+
+# $LIVE_INTERACTIVE: set interactive build
+# (Default: disabled)
+LIVE_INTERACTIVE="disabled"

Added: configs/daniel/config/chroot_localhooks/bash
===================================================================
--- configs/daniel/config/chroot_localhooks/bash	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localhooks/bash	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+cat >> /etc/profile << EOF
+
+if [ "\${TERM}" = "linux" ] && [ "\${SHELL}" = "/bin/bash" ]
+then
+	echo -e "\033[?6c"
+fi
+
+setterm -blength 0 -bfreq 0
+
+trap clear 0
+EOF
+
+cat >> /etc/skel/.bash_profile << EOF
+
+alias cp="cp -i"
+alias ln="ln -i"
+alias mv="mv -i"
+alias rm="rm -i"
+
+alias less="less -R"
+alias ls="ls --color"
+
+export GREP_OPTIONS="--color=auto"
+
+if [ -z "\${DISPLAY}" ] && [ "\`tty\`" = "/dev/tty1" ]
+then
+	startx
+fi
+EOF

Added: configs/daniel/config/chroot_localhooks/readline
===================================================================
--- configs/daniel/config/chroot_localhooks/readline	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localhooks/readline	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cat >> /etc/inputrc << EOF
+
+set bell-style visible
+EOF

Added: configs/daniel/config/chroot_localhooks/vim
===================================================================
--- configs/daniel/config/chroot_localhooks/vim	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localhooks/vim	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+cat >> /etc/vim/vimrc << EOF
+
+syntax on
+
+highlight WhitespaceEOL ctermbg=red guibg=red
+match WhitespaceEOL /\s\+$/
+EOF

Added: configs/daniel/config/chroot_localhooks/wmii
===================================================================
--- configs/daniel/config/chroot_localhooks/wmii	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localhooks/wmii	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+rm -f /etc/X11/wmii/welcome
+
+sed -i	-e "s/SELECTED_BG_COLOR.*/SELECTED_BG_COLOR='#222222'/" \
+	-e "s/SELECTED_FG_COLOR.*/SELECTED_FG_COLOR='#ffffff'/" \
+	-e "s/SELECTED_BORDER_COLOR.*/SELECTED_BORDER_COLOR='#222222'/" \
+	-e "s/NORMAL_BG_COLOR.*/NORMAL_BG_COLOR='#000000'/" \
+	-e "s/NORMAL_FG_COLOR.*/NORMAL_FG_COLOR='#AAAAAA'/" \
+	-e "s/NORMAL_BORDER_COLOR.*/NORMAL_BORDER_COLOR='#000000'/" \
+	-e "s#wmiir write /wm/default/page/layout.*#wmiir write /wm/default/page/layout float#" \
+	-e "s/xsetroot.*//" \
+	-e "s/status &//" /etc/X11/wmii/wmiirc
+
+cat >> /etc/X11/wmii/wmiirc << EOF
+xloadimage -onroot /etc/X11/wmii/wallpaper
+#xsetroot -solid black
+xset b 0 0
+unclutter -idle 1 -root &
+
+while( ! wmiir read /wm/page/9/ )
+{
+	wmiir write /wm/ctl 'new'
+}
+wmiir write /wm/ctl 'select 1'
+
+status &
+EOF

Added: configs/daniel/config/chroot_localhooks/xterm
===================================================================
--- configs/daniel/config/chroot_localhooks/xterm	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localhooks/xterm	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cat > /etc/X11/Xresources/xterm << EOF
+! /etc/X11/Xresources/xterm
+
+XTerm*background: black
+XTerm*cursorBlink: true
+XTerm*foreground: white
+XTerm*loginShell: true
+XTerm*scrollBar: false
+XTerm*utf8: 1
+XTerm*visualBell: true
+EOF

Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/halt
\ No newline at end of file


Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt
___________________________________________________________________
Name: svn:special
   + *

Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/reboot
\ No newline at end of file


Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot
___________________________________________________________________
Name: svn:special
   + *

Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/status
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/status	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/status	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,45 @@
+#!/usr/lib/9base/bin/rc
+# periodically print date and load average to the bar
+
+PIDFILE=/tmp/.ixp-$USER/statuspid-$WMII_IDENT
+
+if(test -r $PIDFILE) {
+    kill -2 `{cat $PIDFILE} >[2]/dev/null
+}
+echo $pid >$PIDFILE
+
+label=`{wmiir read /bar/new}
+wmiir write /bar/$label/b1press 'wmiir write /wm/ctl ''select prev'''
+wmiir write /bar/$label/b3press 'wmiir write /wm/ctl ''select next'''
+wmiir write /bar/$label/b4press 'wmiir write /wm/ctl ''select prev'''
+wmiir write /bar/$label/b5press 'wmiir write /wm/ctl ''select next'''
+
+# install signal handler for artificial sigexit:
+fn sigint {
+    if(test -f $PIDFILE && ~ `{cat $PIDFILE} $pid)
+        rm -f $PIDFILE
+    wmiir write /bar/ctl 'destroy '^$label
+    exit
+}
+
+fn get_battery () {
+	proc_src=/proc/acpi/battery/*
+	if (test ! -d $proc_src) echo 0
+	if not {
+		awk 'BEGIN {batt=0; cap=1; rem=0;}
+		/^present:.*yes/ {batt=1}
+		/^last/    {cap=$4}
+		/^rem/     {rem=$3}
+		END{if (batt) print int(rem/cap*100)}' $proc_src/*
+	}
+}
+
+fn statustext {
+echo (`{get_battery} '|' `{/bin/date  -R})
+}
+
+text=`{statustext}
+while(wmiir write /bar/$label/data $"text >[2]/dev/null) {
+    sleep 1
+    text=`{statustext}
+}


Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/status
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/suspend-disk
\ No newline at end of file


Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk
___________________________________________________________________
Name: svn:special
   + *

Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/suspend-mem
\ No newline at end of file


Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem
___________________________________________________________________
Name: svn:special
   + *

Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/wallpaper
===================================================================
(Binary files differ)


Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/wallpaper
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/chmods	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/chmods	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+# chmods.sh - Setting default file access permissions.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+EXCLUDES="*.changes"
+EXECUTABLES="*.sh"
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+	echo "chmods.sh - Setting default file access permissions."
+	echo
+	echo "Usage: `basename ${0}` [DIRECTORY]"
+	exit 1
+fi
+
+# Setting path
+if [ ! -z "${1}" ]
+then
+	DIRECTORY="${1}"
+else
+	DIRECTORY="`pwd`"
+fi
+
+# Process directories
+find "${DIRECTORY}" -type d -exec chmod 0755 {} \;
+find "${DIRECTORY}" -type d -name lost+found -exec chmod 0700 {} \;
+
+# Process files
+find "${DIRECTORY}" -type f -exec chmod 0644 {} \;
+
+# Process excludes
+for EXCLUDES in ${EXCLUDES}
+do
+	find "${DIRECTORY}" -type f -name "${EXCLUDES}" -exec chmod 0640 {} \;
+done
+
+# Process executables
+for EXECUTABLE in ${EXECUTABLES}
+do
+	find "${DIRECTORY}" -type f -name "${EXECUTABLE}" -exec chmod 0755 {} \;
+done


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/chowns	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/chowns	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# chowns.sh - Setting default file owner and group.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+USER="root"
+GROUP="${USER}"
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+	echo "chowns.sh - Setting default file owner and group."
+	echo
+	echo "Usage: `basename ${0}` [USER]"
+	exit 1
+fi
+
+# Process data
+if [ ! -z "${1}" ]
+then
+	chown "${1}":"${1}" "`pwd`" -R
+else
+	chown "${USER}":"${GROUP}" "`pwd`" -R
+fi


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,194 @@
+#!/bin/sh
+
+# cpufreqs.sh - Setting cpu frequencies.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+	echo "cpufreqs.sh - Setting cpu frequencies."
+	echo
+	echo "Usage: `basename ${0}` {gov|per|use|ava|cur|man|max|min}"
+	echo "Usage: `basename ${0}` {governor|performance|userspace|available|current|manual|maximal|minimal}"
+	exit 1
+fi
+
+# Check if cpufreq is loaded
+if [ ! -d /sys/devices/system/cpu/cpu0/cpufreq ]
+then
+	echo "E: no cpu driver loaded (or sysfs not mounted)."
+	exit 1
+fi
+
+# Change directory
+cd /sys/devices/system/cpu
+
+case "${1}" in
+	gov|governor)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+			echo "${CPU}: current governor `cat scaling_governor`."
+		done
+		;;
+
+	per|performance)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+
+			echo "${CPU}: current governor `cat scaling_governor`."
+
+			if [ "`cat scaling_governor`" = "performance" ]
+			then
+				echo "${CPU}: governor already set to `cat scaling_governor`."
+			else
+				cat scaling_available_governors | grep -q "performance"
+
+				if [ "${?}" = "0" ]
+				then
+					echo "performance" > scaling_governor
+					echo "${CPU}: governor set to `cat scaling_governor`."
+				else
+					echo "E: unavailable governor performance."
+					exit 1
+				fi
+			fi
+		done
+		;;
+
+	use|userspace)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+
+			echo "${CPU}: current governor `cat scaling_governor`."
+
+			if [ "`cat scaling_governor`" = "userspace" ]
+			then
+				echo "${CPU}: governor already set to `cat scaling_governor`."
+			else
+				cat scaling_available_governors | grep -q "userspace"
+
+				if [ "${?}" = "0" ]
+				then
+					echo "userspace" > scaling_governor
+					echo "${CPU}: governor set to `cat scaling_governor`."
+				else
+					echo "E: unavailable governor userspace."
+					exit 1
+				fi
+			fi
+		done
+		;;
+
+	ava|available)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+			echo "${CPU}: available frequencies: `cat scaling_available_frequencies`."
+			echo "${CPU}: available governors: `cat scaling_available_governors`."
+		done
+		;;
+
+	cur|current)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+			echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+			if [ "`cat scaling_cur_freq`" = "`cat scaling_max_freq`" ]
+			then
+				echo "${CPU}: frequency set to maximum."
+			elif [ "`cat scaling_cur_freq`" = "`cat scaling_min_freq`" ]
+			then
+				echo "${CPU}: frequency set to minimum."
+			fi
+		done
+		;;
+
+	man|manual)
+		if [ -z "${2}" ]
+		then
+			echo "E: no frequency specified."
+			exit 1
+		fi
+
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+			cat scaling_available_frequencies | grep -q "${2}"
+
+			if [ "${?}" = "0" ]
+			then
+				echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+				
+				if [ "`cat scaling_cur_freq`" = ${2} ]
+				then
+					echo "${CPU}: frequency already set to `cat scaling_cur_freq`kHz."
+				else
+					if [ "`cat scaling_governor`" = "userspace" ]
+					then
+						echo "${2}" > scaling_setspeed
+						echo "${CPU}: frequency set to `cat scaling_cur_freq`kHz."
+					else
+						echo "E: wrong governor `cat scaling_governor`."
+						exit 1
+					fi
+				fi
+			else
+				echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+				echo "E: unavailable frequency ${2}kHz."
+				exit 1
+			fi
+		done
+		;;
+
+	max|maximal)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+			echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+			if [ "`cat scaling_max_freq`" = "`cat scaling_cur_freq`" ]
+			then
+				echo "${CPU}: frequency already set to maximum."
+			else
+				if [ "`cat scaling_governor`" = "userspace" ]
+				then
+					cat scaling_max_freq > scaling_setspeed
+					echo "${CPU}: frequency set to `cat scaling_cur_freq`kHz."
+				else
+					echo "E: wrong governor `cat scaling_governor`."
+					exit 1
+				fi
+			fi
+		done
+		;;
+
+	min|minimal)
+		for CPU in cpu*
+		do
+			cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+			echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+			if [ "`cat scaling_min_freq`" = "`cat scaling_cur_freq`" ]
+			then
+				echo "${CPU}: frequency already set to minimum."
+			else
+				if [ "`cat scaling_governor`" = "userspace" ]
+				then
+					cat scaling_min_freq > scaling_setspeed
+					echo "${CPU}: frequency set to `cat scaling_cur_freq`kHz."
+				else
+					echo "E: wrong governor `cat scaling_governor`."
+					exit 1
+				fi
+			fi
+		done
+		;;
+esac


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/halt
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/halt	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/halt	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo sh -c "/sbin/halt"


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/halt
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,153 @@
+#!/bin/sh
+
+# md5sums.sh - Generate signed MD5 message digests files.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+Passphrase ()
+{
+	if [ -z "${PASSPHRASE}" ]
+	then
+		echo -n "  * Enter passphrase: "
+		read -s -t 60 PASSPHRASE
+		echo
+		echo
+	fi
+
+	if [ -z "${PASSPHRASE}" ]
+	then
+		Passphrase
+	fi
+
+	trap "if [ ! -z ${PASSPHRASE} ]; then export PASSPHRASE=; fi; exit 0" 0 2 15
+}
+
+Md5sum ()
+{
+	if [ -z "${PASSPHRASE}" ]
+	then
+		Passphrase
+	fi
+
+	# Remove old digests
+	rm -f MD5SUMS
+
+	if [ ! -z "`ls`" ]
+	then
+		# Create digest
+		md5sum * > MD5SUMS
+
+		# Sign digest
+		echo "${PASSPHRASE}" | gpg --quiet --passphrase-fd 0 --clearsign MD5SUMS
+		mv -f MD5SUMS.asc MD5SUMS
+	fi
+}
+
+Md5check ()
+{
+	if [ -r MD5SUMS ]
+	then
+		gpg --verify MD5SUMS
+		md5sum -c MD5SUMS
+	elif [ -f MD5SUMS ]
+	then
+		echo "W: cannot read `pwd`/MD5SUMS: Permission denied."
+	fi
+}
+
+Main ()
+{
+	case "${1}" in
+		-c|--check)
+			Md5check
+			;;
+
+		-cc|--check-recursive)
+			for DIRECTORY in *
+			do
+				if [ -d "${DIRECTORY}" ]
+				then
+					cd "${DIRECTORY}"
+					Md5check
+					cd ..
+				fi
+			done
+			;;
+
+		-ccc|--check-double-recursive)
+			for PARENT_DIRECTORY in *
+			do
+				if [ -d "${PARENT_DIRECTORY}" ]
+				then
+					cd "${PARENT_DIRECTORY}"
+					"${0}" --check-recursive
+					cd ..
+					fi
+			done
+			;;
+
+		--clean)
+			find "`pwd`" -type f -name MD5SUMS* -exec rm -f {} \;
+			;;
+
+		--list)
+			find "`pwd`" -type f -name MD5SUMS*
+			;;
+
+		-s|--sum)
+			Md5sum
+			;;
+
+		-ss|--sum-recursive)
+			for DIRECTORY in *
+			do
+				if [ -d "${DIRECTORY}" ]
+				then
+					cd "${DIRECTORY}"
+					Md5sum
+					cd ..
+				fi
+			done
+			;;
+
+		-sss|--sum-double-recursive)
+			for PARENT_DIRECTORY in *
+			do
+				if [ -d "${PARENT_DIRECTORY}" ]
+				then
+					cd "${PARENT_DIRECTORY}"
+	
+					for DIRECTORY in *
+					do
+						if [ -d "${DIRECTORY}" ]
+						then
+							cd "${DIRECTORY}"
+							Md5sum
+							cd ..
+						fi
+					done
+	
+					cd ..
+				fi
+			done
+			;;
+
+		-h|--help)
+			echo "md5sums.sh - Generate signed MD5 message digests files."
+			echo
+			echo "Usage: `basename ${0}` [-c|--check] [-cc|--recursive-check] [-ccc|--double-recursive-check]"
+			echo "Usage: `basename ${0}` [--clean] [--list]"
+			echo "Usage: `basename ${0}` [-s|--sum] [-ss|--sum-recursive] [-sss|--sum-double-recursive]"
+			exit 1
+			;;
+
+		*)
+			Md5sum
+			;;
+	esac
+}
+
+Main "${@}"


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/pss
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/pss	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/pss	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# pss.sh - Greps through list of the current processes.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+GREP_OPTIONS="--color=auto -i"
+PS_OPTIONS="-eaf"
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+	echo "pss.sh - Greps through list of the current processes."
+	echo
+	echo "Usage: `basename ${0}` [GREP_PATTERN]"
+	exit 1
+fi
+
+# Process data
+ps "${PS_OPTIONS}" | grep -e "${1}"


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/pss
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/reboot
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/reboot	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/reboot	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo sh -c "/sbin/reboot"


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/reboot
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo sh -c "echo 'disk' > /sys/power/state"


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo sh -c "echo 'mem' > /sys/power/state"


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# vi-mtime.sh - Editing files without changing mtime.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ -z "${1}" ]
+then
+	echo "vi-mtime.sh - Editing files without changing mtime."
+	echo
+	echo "Usage: `basename ${0}` FILE"
+	exit 1
+fi
+
+# Saving mtime
+touch -r "${1}" ."${1}".date
+
+# Process file
+vi "${1}"
+
+# Restoring mtime
+touch -r ."${1}".date "${1}"
+rm -f ."${1}".date


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localincludes/usr/local/bin/vis
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/vis	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/vis	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# vis.sh - Editing files recursively.
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+	echo "vis.sh - Editing files recursively."
+	echo
+	echo "Usage: `basename ${0}` [-r|--recursive]"
+	exit 1
+fi
+
+case "${1}" in
+	-r|--recursive)
+		find "`pwd`" -type f -exec vi {} \;
+		;;
+
+	*)
+		find "`pwd`" -maxdepth 1 -type f -exec vi {} \;
+		;;
+esac


Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/vis
___________________________________________________________________
Name: svn:executable
   + *

Added: configs/daniel/config/chroot_localpackageslists/daniel
===================================================================
--- configs/daniel/config/chroot_localpackageslists/daniel	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/chroot_localpackageslists/daniel	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,42 @@
+# /usr/share/make-live/lists/x11 - package list for make-live(1)
+
+# Minimal
+eject file sudo vim-tiny
+
+# Standard
+console-common kbd locales
+
+# X11
+xorg xresprobe
+
+################################################################################
+
+# Mozilla
+enigmail icedove iceweasel
+
+# WM
+dwm-tools unclutter wmii2 xloadimage xterm xtrlock
+
+# CD-ROM
+genisoimage wodim
+
+# Wireless
+firmware-ipw3945 ipw3945-modules-2.6-686 ipw3945d wireless-tools
+
+# Filesystems
+dosfstools e2fsprogs ext2resize hfsutils jfsutils ntfs-3g ntfsprogs
+reiser4progs reiserfsprogs ufsutils xfsprogs
+ddrescue sdd grub lilo gparted parted partimage
+
+# Network
+bmon curl dnsutils finger iftop iptraf irssi lynx mtr ncftp netcat nmap ntop
+ntpdate openssh-client rsync telnet-ssl tcpdump tcptraceroute traceroute
+tshark vpnc wget whois
+
+# Utilities
+bc bittorrent cvs gpm less screen strace subversion sudo vim
+
+# misc
+hdparm dmidecode procinfo pciutils usbutils hwinfo hwtools x86info cpuid
+testdisk
+clamav clamav-data wipe secure-delete minicom

Added: configs/daniel/config/common
===================================================================
--- configs/daniel/config/common	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/common	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,87 @@
+# config/common: configuration for live-helper(7)
+
+# $LH_MODE: set distribution mode
+# (Default: debian)
+LH_MODE="debian"
+
+# $LH_APT: set package manager
+# (Default: aptitude)
+LH_APT="aptitude"
+
+# $LH_APT_FTPPROXY: set apt/aptitude ftp proxy
+# (Default: autodetected or empty)
+LH_APT_FTPPROXY=""
+
+# $LH_APT_HTTPPROXY: set apt/aptitude http proxy
+# (Default: autodetected or empty)
+LH_APT_HTTPPROXY=""
+
+# $LH_APT_GENERIC: set apt/aptitude generic indices
+# (Default: enabled)
+LH_APT_GENERIC="enabled"
+
+# $LH_APT_PDIFFS: set apt/aptitude pdiff indices
+# (Default: enabled)
+LH_APT_PDIFFS="enabled"
+
+# $LH_APT_RECOMMENDS: enable recommends
+# (Default: disable)
+LH_APT_RECOMMENDS="disable"
+
+# $LH_APT_SECURE: enable secure
+# (Default: enabled)
+LH_APT_SECURE="enabled"
+
+# $LH_BOOTSTRAP: select the bootstrap program
+# (Default: cdebootstrap)
+LH_BOOTSTRAP="cdebootstrap"
+
+# $LH_CACHE: control if downloaded packages should be cached
+# (Default: enabled)
+LH_CACHE="enabled"
+
+# $LH_DEBCONF_FRONTEND: set the debconf(1) frontend to use
+# (Default: noninteractive)
+LH_DEBCONF_FRONTEND="noninteractive"
+
+# $LH_DEBCONF_PRIORITY: set the debconf(1) priority to use
+# (Default: critical)
+LH_DEBCONF_PRIORITY="critical"
+
+# $LH_DEBCONF_NOWARNINGS: set debconf(1) warnings
+# (Default: yes)
+LH_DEBCONF_NOWARNINGS="yes"
+
+# $LH_GENISOIMAGE: set the genisoimage program
+# (Default: genisoimage)
+LH_GENISOIMAGE="genisoimage"
+
+# $LH_LOSETUP: set the losetup program
+# (Default: autodetected)
+LH_LOSETUP="losetup"
+
+# $LIVE_ROOT: set the root directory
+# (Default: debian-live)
+LIVE_ROOT="daniel"
+
+# Live-helper options
+
+# $LH_BREAKPOINTS: enable breakpoints
+# (Default: disabled)
+LH_BREAKPOINTS="disabled"
+
+# $LH_DEBUG: enable debug
+# (Default: disabled)
+LH_DEBUG="disabled"
+
+# $LH_FORCE: enable force
+# (Default: disabled)
+LH_FORCE="disabled"
+
+# $LH_QUIET: enable quiet
+# (Default: disabled)
+LH_QUIET="disabled"
+
+# $LH_VERBOSE: enable verbose
+# (Default: disabled)
+LH_VERBOSE="disabled"

Added: configs/daniel/config/image
===================================================================
--- configs/daniel/config/image	2007-04-13 06:54:14 UTC (rev 1048)
+++ configs/daniel/config/image	2007-04-13 06:55:20 UTC (rev 1049)
@@ -0,0 +1,69 @@
+# config/chroot: configuration for lh_image_*
+
+# $LIVE_BOOTAPPEND: set boot parameters
+# (Default: empty)
+LIVE_BOOTAPPEND=""
+
+# $LIVE_ENCRYPTION: set encrytion
+# (Default: empty)
+LIVE_ENCRYPTION=""
+
+# $LIVE_USERNAME: set username
+# (Default: user)
+LIVE_USERNAME="daniel"
+
+# $LIVE_HOSTNAME: set hostname
+# (Default: debian)
+LIVE_HOSTNAME="debian"
+
+# $LIVE_FILESYSTEM: set filesystem
+# (Default: squashfs)
+LIVE_FILESYSTEM="squashfs"
+
+# $LIVE_MEMTEST: set memtest
+# (Default: memtest86+)
+LIVE_MEMTEST="memtest86+"
+
+# $LIVE_ISO_VOLUME: set iso volume
+# (Default: Debian Live `date +%Y%m%d`)
+LIVE_ISO_VOLUME="Debian Live `date +%Y%m%d`"
+
+# $LIVE_SERVER_ADDRESS: set the netboot server address
+# (Default: 192.168.1.1)
+LIVE_SERVER_ADDRESS="192.168.1.1"
+
+# $LIVE_SERVER_PATH: set the netboot server directory
+# (Default: /srv/debian-live)
+LIVE_SERVER_PATH="/srv/debian-live"
+
+# $LIVE_SOURCE: set source option
+# (Default: )
+LIVE_SOURCE="enabled"
+
+# $LIVE_BOOTLOADER: set bootloader
+# (Default: syslinux)
+LIVE_BOOTLOADER="syslinux"
+
+# $LIVE_GRUB_SPLASH: set custom grub splash
+# (Default: empty)
+LIVE_GRUB_SPLASH=""
+
+# $LIVE_SYSLINUX_SPLASH: set custom syslinux splash
+# (Default: empty)
+LIVE_SYSLINUX_SPLASH=""
+
+# $LIVE_BINARY_IMAGE: set image type
+# (Default: usb)
+LIVE_BINARY_IMAGE="usb"
+
+# $LIVE_SOURCE_IMAGE: set image type
+# (Default: generic)
+LIVE_SOURCE_IMAGE="generic"
+
+# $LIVE_INCLUDES: set includes
+# (Default: /usr/share/live-helper/includes)
+LIVE_INCLUDES="/usr/share/live-helper/includes"
+
+# $LIVE_TEMPLATES: set templates
+# (Default: /usr/share/live-helper/templates)
+LIVE_TEMPLATES="/usr/share/live-helper/templates"




More information about the Debian-live-changes mailing list