From 7eaa3c7b706156edb0d575bad3c8da77488a3d11 Mon Sep 17 00:00:00 2001 From: lars Date: Sat, 15 Oct 2005 10:22:53 +0000 Subject: [PATCH] example for apt-proxy added to dfs-cbox.conf hints for no-login added to init-scripts version file added to cryptobox configuration template (for config partition) --- cbox-tree.d/etc/init.d/cb-hints.sh | 26 +++++++++++++++++++ cbox-tree.d/etc/rc3.d/S99cb-hints | 1 + .../usr/share/cryptobox/defaults/version | 1 + etc-defaults.d/dfs-cbox.conf | 12 ++++++--- 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 cbox-tree.d/etc/init.d/cb-hints.sh create mode 120000 cbox-tree.d/etc/rc3.d/S99cb-hints create mode 100644 cbox-tree.d/usr/share/cryptobox/defaults/version diff --git a/cbox-tree.d/etc/init.d/cb-hints.sh b/cbox-tree.d/etc/init.d/cb-hints.sh new file mode 100644 index 0000000..b7ac3fd --- /dev/null +++ b/cbox-tree.d/etc/init.d/cb-hints.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# give some hints for users, who are sitting in front of the cryptobox and are mistakenly +# waiting for a login prompt +# + +case "$1" in + start ) + echo + echo "Hints for usage: + echo " * you can not login here :)" + echo " * point a webbrowser on another computer to 'http://$(/usr/lib/cryptobox/cb-manage.sh get_current_ip)'" + echo " * configure your box via your webbrowser" + echo + ;; + stop ) + ;; + restart ) + $0 stop + $0 start + ;; + * ) + echo "Syntax: $0 { start | stop | restart }" + ;; + esac + diff --git a/cbox-tree.d/etc/rc3.d/S99cb-hints b/cbox-tree.d/etc/rc3.d/S99cb-hints new file mode 120000 index 0000000..1c5173d --- /dev/null +++ b/cbox-tree.d/etc/rc3.d/S99cb-hints @@ -0,0 +1 @@ +../init.d/cb-hints.sh \ No newline at end of file diff --git a/cbox-tree.d/usr/share/cryptobox/defaults/version b/cbox-tree.d/usr/share/cryptobox/defaults/version new file mode 100644 index 0000000..be58634 --- /dev/null +++ b/cbox-tree.d/usr/share/cryptobox/defaults/version @@ -0,0 +1 @@ +0.3 diff --git a/etc-defaults.d/dfs-cbox.conf b/etc-defaults.d/dfs-cbox.conf index b6ce29b..90b3011 100644 --- a/etc-defaults.d/dfs-cbox.conf +++ b/etc-defaults.d/dfs-cbox.conf @@ -116,10 +116,16 @@ allpackages = util-linux #diff #patch -# Default mirror for "repo" sections -mirror = http://127.0.0.1/apt-cacher/ftp.de.debian.org/debian + +# select a mirror for the repository (apt-cacher, apt-proxy, no caching) by +# uncommenting the line of your choice +# (1) apt-cacher (default) +mirror = http://127.0.0.1/apt-cacher/ftp.debian.org/debian +# (2) apt-proxy +#mirror = http://localhost:9999/debian +# (3) no caching proxy for apt #mirror = http://ftp.debian.org/debian -#mirror = http://mirrors/debian + # Devices to probe for CD devices = scd0 scd1 scd2 scd3 scd4 hda hdb hdc hdd hde hdf hdg