diff options
author | root <root@dasajuma.(none)> | 2010-09-02 10:26:04 +0200 |
---|---|---|
committer | root <root@dasajuma.(none)> | 2010-09-02 10:26:04 +0200 |
commit | 8e0d211bf674953f2830830e27cb80a8b720ef17 (patch) | |
tree | a7814d6dd37b84476628e51d9fcb5f3ea98bba8e /config/chroot_local-includes | |
download | kanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.zip kanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.tar.gz |
Initial commit
Diffstat (limited to 'config/chroot_local-includes')
5 files changed, 117 insertions, 0 deletions
diff --git a/config/chroot_local-includes/etc/bash.bashrc b/config/chroot_local-includes/etc/bash.bashrc new file mode 100644 index 0000000..ea000a6 --- /dev/null +++ b/config/chroot_local-includes/etc/bash.bashrc @@ -0,0 +1,57 @@ +# System-wide .bashrc file for interactive bash(1) shells. + +# To enable the settings / commands in this file for login shells as well, +# this file has to be sourced in /etc/profile. + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, overwrite the one in /etc/profile) +PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + +# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default. +# If this is an xterm set the title to user@host:dir +#case "$TERM" in +#xterm*|rxvt*) +# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' +# ;; +#*) +# ;; +#esac + +# enable bash completion in interactive shells +if [ -f /etc/bash_completion ]; then + . /etc/bash_completion +fi + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + eval "`dircolors -b`" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + #alias fgrep='fgrep --color=auto' + #alias egrep='egrep --color=auto' +fi + +# Some more alias to avoid making mistakes: +alias rm='rm -i' +alias cp='cp -i' +alias mv='mv -i' +alias ll='ls -l' +alias la='ls -A' +alias l='ls -CF' +alias ..='cd ..' +alias cd..='cd ..' + diff --git a/config/chroot_local-includes/etc/kanotix-version b/config/chroot_local-includes/etc/kanotix-version new file mode 100644 index 0000000..848ae27 --- /dev/null +++ b/config/chroot_local-includes/etc/kanotix-version @@ -0,0 +1 @@ +Kanotix Hellfire acritoxtest diff --git a/config/chroot_local-includes/etc/live/config.conf b/config/chroot_local-includes/etc/live/config.conf new file mode 100644 index 0000000..0b004db --- /dev/null +++ b/config/chroot_local-includes/etc/live/config.conf @@ -0,0 +1,10 @@ +LIVE_USERNAME="kanotix" +LIVE_USER_FULLNAME="Kanotix Live user" +LIVE_HOSTNAME="Kanotix" +LIVE_LOCALES= +LIVE_TIMEZONE= +LIVE_UTC= +LIVE_HOOK= + +export LIVE_USERNAME LIVE_USER_FULLNAME LIVE_HOSTNAME LIVE_LOCALES LIVE_TIMEZONE LIVE_UTC LIVE_HOOK + 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 + |