summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/lib/live
diff options
context:
space:
mode:
authorroot <root@dasajuma.(none)>2010-09-02 10:26:04 +0200
committerroot <root@dasajuma.(none)>2010-09-02 10:26:04 +0200
commit8e0d211bf674953f2830830e27cb80a8b720ef17 (patch)
treea7814d6dd37b84476628e51d9fcb5f3ea98bba8e /config/chroot_local-includes/lib/live
downloadkanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.zip
kanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.tar.gz
Initial commit
Diffstat (limited to 'config/chroot_local-includes/lib/live')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/900-sudo-su-alias42
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/901-hotfixes7
2 files changed, 49 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/900-sudo-su-alias b/config/chroot_local-includes/lib/live/config/900-sudo-su-alias
new file mode 100755
index 0000000..1f7b891
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/900-sudo-su-alias
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# live-config(7) - System Configuration Scripts
+# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
+#
+# live-config comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+# This is free software, and you are welcome to redistribute it
+# under certain conditions; see COPYING for details.
+
+
+Sudoalias ()
+{
+ # Checking if package is already configured
+ if [ -e /var/lib/live/config/sudo-su-alias ]
+ then
+ return
+ fi
+
+ echo -n " sudoalias"
+
+ Configure_sudoalias
+}
+
+Configure_sudoalias ()
+{
+ # Checking if if package is already configured differently
+ if grep -q "livecd password hook" /home/${LIVE_USERNAME}/.bashrc
+ then
+ return
+ fi
+ sudo -u "${LIVE_USERNAME}" sh -c "cat >> /home/${LIVE_USERNAME}/.bashrc" << EOF
+
+# livecd password hook
+alias su="sudo su"
+alias sux="sudo sux"
+EOF
+
+ # Creating state file
+ touch /var/lib/live/config/sudoalias
+}
+
+Sudoalias
diff --git a/config/chroot_local-includes/lib/live/config/901-hotfixes b/config/chroot_local-includes/lib/live/config/901-hotfixes
new file mode 100755
index 0000000..9d8214a
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/901-hotfixes
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# fix timezone
+if [ -n "${LIVE_TIMEZONE}" ]; then
+ echo "${LIVE_TIMEZONE}" > /etc/timezone
+fi
+