summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2011-09-04 20:52:10 (GMT)
committer Jaromil <jaromil@dyne.org>2011-09-04 20:52:10 (GMT)
commit7c762fae4e337f6b9d0f9cb35c681d3cbd15ea9c (patch)
tree86151e3302c0ed6be9dad71c668af6827d206e10
parent30a9042fe586cae29df600ff8d56f2670a3a2ade (diff)
dyne scripts for live-bottom
-rwxr-xr-xdyneIII/live-init-scripts/scripts/live-bottom/00dyne_gui_settings61
-rwxr-xr-xdyneIII/live-init-scripts/scripts/live-bottom/00dyne_settings26
2 files changed, 87 insertions, 0 deletions
diff --git a/dyneIII/live-init-scripts/scripts/live-bottom/00dyne_gui_settings b/dyneIII/live-init-scripts/scripts/live-bottom/00dyne_gui_settings
new file mode 100755
index 0000000..f9cd815
--- /dev/null
+++ b/dyneIII/live-init-scripts/scripts/live-bottom/00dyne_gui_settings
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Original script by Denis Roio <jaromil@dyne.org>
+
+PREREQ="blacklist udev"
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+. /scripts/live-helpers
+. /scripts/live-functions
+
+# we operate on boot type local
+bootconf=$(egrep '^BOOT=' /conf/initramfs.conf | tail -1)
+if [ "$bootconf" != "BOOT=local" ]
+then
+ # Not a local boot : nothing to do
+ exit 0
+fi
+
+
+# superseded by command line
+for ARGUMENT in $(cat /proc/cmdline); do
+ case "${ARGUMENT}" in
+ textonly)
+ TEXTONLY=yes
+ really_export TEXTONLY
+ log_success_msg "Text-only mode selected"
+ ;;
+ xdriver=*)
+ XDRIVER="${ARGUMENT#xdriver=}"
+ really_export XDRIVER
+ log_success_msg "XDriver set to ${XDRIVER}"
+ ;;
+ esac
+done
+
+# this is what adds parameters to boot
+touch /live.vars
+if [ -n "$textonly" ];
+then
+ echo "TEXT ONLY MODE SELECTED"
+ echo "TEXTONLY=Yes" >> /live.vars
+fi
+if [ -n "$xdriver" ];
+then
+ echo "XDRIVER MANUALLY SET TO: ${xdriver}"
+ echo "XDRIVER=${xdriver}" >> /live.vars
+fi
+
+
diff --git a/dyneIII/live-init-scripts/scripts/live-bottom/00dyne_settings b/dyneIII/live-init-scripts/scripts/live-bottom/00dyne_settings
new file mode 100755
index 0000000..c6af042
--- /dev/null
+++ b/dyneIII/live-init-scripts/scripts/live-bottom/00dyne_settings
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Original script by Denis Roio <jaromil@dyne.org>
+
+PREREQ="blacklist udev"
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+. /scripts/live-helpers
+. /scripts/live-functions
+
+USERNAME=luther; really_export USERNAME
+USERFULLNAME="Luther Blissett"; really_export USERFULLNAME
+HOSTNAME=dynebolic; really_export HOSTNAME
+