public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, thirteen, updated. b21b0df6a666936b48592aa825fe1950d32ff21a
@ 2012-11-11 22:32 git
  0 siblings, 0 replies; only message in thread
From: git @ 2012-11-11 22:32 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 32468 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, thirteen has been updated
       via  b21b0df6a666936b48592aa825fe1950d32ff21a (commit)
       via  ee11bc4e123fcf5ea1c808e6be5b9489e4ba2474 (commit)
       via  444b9419e23a4dbf8891b3ba9773dc43995a47bc (commit)
      from  11a2fa057198466db44225308633c2a732fd4258 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b21b0df6a666936b48592aa825fe1950d32ff21a
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sun Nov 11 23:28:52 2012 +0100

    Import bash startfiles from IPFire 3.x.

commit ee11bc4e123fcf5ea1c808e6be5b9489e4ba2474
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sun Nov 11 23:03:37 2012 +0100

    collectd: Update rootfile.

commit 444b9419e23a4dbf8891b3ba9773dc43995a47bc
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Sun Nov 11 23:02:03 2012 +0100

    acpid: Add initscript for acpi daemon.

-----------------------------------------------------------------------

Summary of changes:
 config/bash/dot_bash_logout                    |    7 ++
 config/bash/dot_bash_profile                   |   12 +++
 config/bash/dot_bashrc                         |   12 +++
 config/etc/bashrc                              |  116 +++++++++++++++++-------
 config/etc/inputrc                             |   56 ++++++------
 config/etc/profile                             |  112 +++++++++++++----------
 config/profile.d/colorls.sh                    |   40 ++++++++
 config/profile.d/dircolors.sh                  |    9 --
 config/profile.d/extrapaths.sh                 |   15 ---
 config/profile.d/i18n.sh                       |   10 ++-
 config/profile.d/lang.sh                       |   90 ++++++++++++++++++
 config/profile.d/term256.sh                    |   26 ++++++
 config/rootfiles/common/collectd               |   68 ++++++++++++++-
 config/rootfiles/common/coreutils              |    2 +-
 config/rootfiles/common/i586/initscripts       |    2 +
 config/rootfiles/common/stage2                 |    9 ++-
 lfs/coreutils                                  |    2 +-
 lfs/initscripts                                |    5 +-
 lfs/stage2                                     |    6 +-
 src/initscripts/init.d/{transmission => acpid} |   31 ++++---
 20 files changed, 470 insertions(+), 160 deletions(-)
 create mode 100644 config/bash/dot_bash_logout
 create mode 100644 config/bash/dot_bash_profile
 create mode 100644 config/bash/dot_bashrc
 create mode 100644 config/profile.d/colorls.sh
 delete mode 100644 config/profile.d/dircolors.sh
 delete mode 100644 config/profile.d/extrapaths.sh
 create mode 100644 config/profile.d/lang.sh
 create mode 100644 config/profile.d/term256.sh
 copy src/initscripts/init.d/{transmission => acpid} (50%)

Difference in files:
diff --git a/config/bash/dot_bash_logout b/config/bash/dot_bash_logout
new file mode 100644
index 0000000..3762d94
--- /dev/null
+++ b/config/bash/dot_bash_logout
@@ -0,0 +1,7 @@
+# Begin ~/.bash_logout
+
+# Personal items to perform on logout.
+
+echo "Bye bye."
+
+# End ~/.bash_logout
diff --git a/config/bash/dot_bash_profile b/config/bash/dot_bash_profile
new file mode 100644
index 0000000..3dc099a
--- /dev/null
+++ b/config/bash/dot_bash_profile
@@ -0,0 +1,12 @@
+# .bash_profile
+
+# Get the aliases and functions
+if [ -f ~/.bashrc ]; then
+	. ~/.bashrc
+fi
+
+# User specific environment and startup programs
+
+PATH=$PATH:$HOME/bin
+
+export PATH
diff --git a/config/bash/dot_bashrc b/config/bash/dot_bashrc
new file mode 100644
index 0000000..6e6d1e1
--- /dev/null
+++ b/config/bash/dot_bashrc
@@ -0,0 +1,12 @@
+# .bashrc
+
+# User specific aliases and functions
+
+alias rm='rm -i'
+alias cp='cp -i'
+alias mv='mv -i'
+
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+	. /etc/bashrc
+fi
diff --git a/config/etc/bashrc b/config/etc/bashrc
index fb0c31e..901f5d5 100644
--- a/config/etc/bashrc
+++ b/config/etc/bashrc
@@ -1,41 +1,89 @@
-# Begin /etc/bashrc
-# Written for Beyond Linux From Scratch
-# by James Robertson <jameswrobertson(a)earthlink.net>
-# updated by Bruce Dubbs <bdubbs(a)linuxfromscratch.org>
+# /etc/bashrc
 
-# Make sure that the terminal is set up properly for each shell
+# System wide functions and aliases
+# Environment stuff goes in /etc/profile
 
-if [ -f /etc/profile.d/tinker-term.sh ]; then
-  source /etc/profile.d/tinker-term.sh
-fi
-
-# System wide aliases and functions.
-
-# System wide environment variables and startup programs should go into
-# /etc/profile.  Personal environment variables and startup programs
-# should go into ~/.bash_profile.  Personal aliases and functions should
-# go into ~/.bashrc
+# It's NOT a good idea to change this file unless you know what you
+# are doing. It's much better to create a custom.sh shell script in
+# /etc/profile.d/ to make custom changes to your environment, as this
+# will prevent the need for merging in future updates.
 
-# Provides a colored /bin/ls command.  Used in conjunction with code in
-# /etc/profile.
-
-alias ls='ls --color=auto'
-alias ll='ls -la'
-alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
+# are we an interactive shell?
+if [ "$PS1" ]; then
+  if [ -z "$PROMPT_COMMAND" ]; then
+    case $TERM in
+    xterm*)
+      if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
+          PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
+      else
+          PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
+      fi
+      ;;
+    screen)
+      if [ -e /etc/sysconfig/bash-prompt-screen ]; then
+          PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
+      else
+          PROMPT_COMMAND='printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
+      fi
+      ;;
+    *)
+      [ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default
+      ;;
+    esac
+  fi
+  # Turn on parallel history
+  shopt -s histappend
+  history -a
+  # Turn on checkwinsize
+  shopt -s checkwinsize
+  [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
+  # You might want to have e.g. tty in prompt (e.g. more virtual machines)
+  # and console windows
+  # If you want to do so, just add e.g.
+  # if [ "$PS1" ]; then
+  #   PS1="[\u@\h:\l \W]\\$ "
+  # fi
+  # to your custom modification shell script in /etc/profile.d/ directory
+fi
 
-# Make the shell a little bit more interactive 
-# to prevent the deletion of some files
-alias mv='mv -i'
-alias rm='rm -i'
-alias cp='cp -i'
+if ! shopt -q login_shell ; then # We're not a login shell
+    # Need to redefine pathmunge, it get's undefined at the end of /etc/profile
+    pathmunge () {
+        case ":${PATH}:" in
+            *:"$1":*)
+                ;;
+            *)
+                if [ "$2" = "after" ] ; then
+                    PATH=$PATH:$1
+                else
+                    PATH=$1:$PATH
+                fi
+        esac
+    }
 
-# Provides prompt for non-login shells, specifically shells started
-# in the X environment. [Review the LFS archive thread titled
-# PS1 Environment Variable for a great case study behind this script
-# addendum.]
+    # By default, we want umask to get set. This sets it for non-login shell.
+    # Current threshold for system reserved uid/gids is 200
+    # You could check uidgid reservation validity in
+    # /usr/share/doc/setup-*/uidgid file
+    if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
+       umask 002
+    else
+       umask 022
+    fi
 
-#export PS1="\033[0m[\033[1;33m\u\033[1;37m@\033[1;32m\]\h \033[1;31m\w\033[0m]\\$ "
-export PS1="[\u@\h \w]\\$ "
-#export PS1='\u@\h:\w\$ '
+    # Only display echos from profile.d scripts if we are no login shell
+    # and interactive - otherwise just process them to set envvars
+    for i in /etc/profile.d/*.sh; do
+        if [ -r "$i" ]; then
+            if [ "$PS1" ]; then
+                . "$i"
+            else
+                . "$i" >/dev/null
+            fi
+        fi
+    done
 
-# End /etc/bashrc
+    unset i
+    unset -f pathmunge
+fi
+# vim:ts=4:sw=4
diff --git a/config/etc/inputrc b/config/etc/inputrc
index 7a7908c..883686c 100644
--- a/config/etc/inputrc
+++ b/config/etc/inputrc
@@ -1,42 +1,42 @@
-# Begin /etc/inputrc
+# do not bell on tab-completion
+#set bell-style none
 
-# Allow the command prompt to wrap to the next line
-set horizontal-scroll-mode Off
+set meta-flag on
+set input-meta on
+set convert-meta off
+set output-meta on
 
-# Enable 8bit input
-set meta-flag On
-set input-meta On
+# Completed names which are symbolic links to
+# directories have a slash appended.
+set mark-symlinked-directories on
 
-# Turns off 8th bit stripping
-set convert-meta Off
+$if mode=emacs
 
-# Keep the 8th bit for display
-set output-meta On
-
-# none, visible or audible
-set bell-style none
-
-# All of the following map the escape sequence of the
-# value contained inside the 1st argument to the
-# readline specific functions
-
-"\eOd": backward-word
-"\eOc": forward-word
-
-# for linux console
+# for linux console and RH/Debian xterm
 "\e[1~": beginning-of-line
 "\e[4~": end-of-line
-"\e[5~": beginning-of-history
-"\e[6~": end-of-history
+# commented out keymappings for pgup/pgdown to reach begin/end of history
+#"\e[5~": beginning-of-history
+#"\e[6~": end-of-history
+"\e[5~": history-search-backward
+"\e[6~": history-search-forward
 "\e[3~": delete-char
 "\e[2~": quoted-insert
+"\e[5C": forward-word
+"\e[5D": backward-word
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
 
-# for xterm
+# for rxvt
+"\e[8~": end-of-line
+"\eOc": forward-word
+"\eOd": backward-word
+
+# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
 "\eOH": beginning-of-line
 "\eOF": end-of-line
 
-# for Konsole
+# for freebsd console
 "\e[H": beginning-of-line
 "\e[F": end-of-line
-
-# End /etc/inputrc
+$endif
diff --git a/config/etc/profile b/config/etc/profile
index 3c29219..cc63878 100644
--- a/config/etc/profile
+++ b/config/etc/profile
@@ -1,64 +1,76 @@
-# Begin /etc/profile
-# Written for Beyond Linux From Scratch
-# by James Robertson <jameswrobertson(a)earthlink.net>
-# modifications by Dagmar d'Surreal <rivyqntzne(a)pbzpnfg.arg>
+# /etc/profile
 
-# System wide environment variables and startup programs.
+# System wide environment and startup programs, for login setup
+# Functions and aliases go in /etc/bashrc
 
-# System wide aliases and functions should go in /etc/bashrc.  Personal
-# environment variables and startup programs should go into
-# ~/.bash_profile.  Personal aliases and functions should go into
-# ~/.bashrc.
+# It's NOT a good idea to change this file unless you know what you
+# are doing. It's much better to create a custom.sh shell script in
+# /etc/profile.d/ to make custom changes to your environment, as this
+# will prevent the need for merging in future updates.
 
-# Functions to help us manage paths.  Second argument is the name of the
-# path variable to be modified (default: PATH)
-pathremove () {
-        local IFS=':'
-        local NEWPATH
-        local DIR
-        local PATHVARIABLE=${2:-PATH}
-        for DIR in ${!PATHVARIABLE} ; do
-                if [ "$DIR" != "$1" ] ; then
-                  NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
-                fi
-        done
-        export $PATHVARIABLE="$NEWPATH"
+pathmunge () {
+    case ":${PATH}:" in
+        *:"$1":*)
+            ;;
+        *)
+            if [ "$2" = "after" ] ; then
+                PATH=$PATH:$1
+            else
+                PATH=$1:$PATH
+            fi
+    esac
 }
 
-pathprepend () {
-        pathremove $1 $2
-        local PATHVARIABLE=${2:-PATH}
-        export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
-}
-
-pathappend () {
-        pathremove $1 $2
-        local PATHVARIABLE=${2:-PATH}
-        export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
-}
 
+if [ -x /usr/bin/id ]; then
+    if [ -z "$EUID" ]; then
+        # ksh workaround
+        EUID=`id -u`
+        UID=`id -ru`
+    fi
+    USER="`id -un`"
+    LOGNAME=$USER
+    MAIL="/var/spool/mail/$USER"
+fi
 
-# Set the initial path
-export PATH=/bin:/usr/bin
+# Path manipulation
+if [ "$EUID" = "0" ]; then
+    pathmunge /usr/sbin
+    pathmunge /usr/local/sbin
+else
+    pathmunge /usr/local/sbin after
+    pathmunge /usr/sbin after
+fi
 
-if [ $EUID -eq 0 ] ; then
-        pathappend /sbin:/usr/sbin
-        unset HISTFILE
+HOSTNAME=`/usr/bin/hostname 2>/dev/null`
+HISTSIZE=1000
+if [ "$HISTCONTROL" = "ignorespace" ] ; then
+    export HISTCONTROL=ignoreboth
+else
+    export HISTCONTROL=ignoredups
 fi
 
-# Setup some environment variables.
-export HISTSIZE=1000
-export HISTIGNORE="&:[bf]g:exit"
-export PS1="[\u@\h \w]\\$ "
-#export PS1='\u@\h:\w\$ '
+export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
+
+# By default, we want umask to get set. This sets it for login shell
+# Current threshold for system reserved uid/gids is 200
+# You could check uidgid reservation validity in
+# /usr/share/doc/setup-*/uidgid file
+if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
+    umask 002
+else
+    umask 022
+fi
 
-for script in /etc/profile.d/*.sh ; do
-        if [ -r $script ] ; then
-                . $script
+for i in /etc/profile.d/*.sh ; do
+    if [ -r "$i" ]; then
+        if [ "${-#*i}" != "$-" ]; then 
+            . "$i"
+        else
+            . "$i" >/dev/null 2>&1
         fi
+    fi
 done
 
-# Now to clean up
-unset pathremove pathprepend pathappend
-
-# End /etc/profile
+unset i
+unset pathmunge
diff --git a/config/profile.d/colorls.sh b/config/profile.d/colorls.sh
new file mode 100644
index 0000000..dc5c223
--- /dev/null
+++ b/config/profile.d/colorls.sh
@@ -0,0 +1,40 @@
+# color-ls initialization
+
+#when USER_LS_COLORS defined do not override user LS_COLORS, but use them.
+if [ -z "$USER_LS_COLORS" ]; then
+
+  alias ll='ls -l' 2>/dev/null
+  alias l.='ls -d .*' 2>/dev/null
+
+
+  # Skip the rest for noninteractive shells.
+  [ -z "$PS1" ] && return
+
+  COLORS=
+
+  for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \
+      "$HOME/.dir_colors" "$HOME/.dircolors"; do
+    [ -e "$colors" ] && COLORS="$colors" && break
+  done
+
+  [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.256color" ] && \
+      [ "x`tty -s && tput colors 2>/dev/null`" = "x256" ] && \
+      COLORS="/etc/DIR_COLORS.256color"
+
+  if [ -z "$COLORS" ]; then
+    for colors in "/etc/DIR_COLORS.$TERM" "/etc/DIR_COLORS" ; do
+      [ -e "$colors" ] && COLORS="$colors" && break
+    done
+  fi
+
+  # Existence of $COLORS already checked above.
+  [ -n "$COLORS" ] || return
+
+  eval "`dircolors --sh "$COLORS" 2>/dev/null`"
+  [ -z "$LS_COLORS" ] && return
+  grep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return
+fi
+
+alias ll='ls -l --color=auto' 2>/dev/null
+alias l.='ls -d .* --color=auto' 2>/dev/null
+alias ls='ls --color=auto' 2>/dev/null
diff --git a/config/profile.d/dircolors.sh b/config/profile.d/dircolors.sh
deleted file mode 100644
index 873d91b..0000000
--- a/config/profile.d/dircolors.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-# Setup for /bin/ls to support color, the alias is in /etc/bashrc.
-if [ -f "/etc/dircolors" ] ; then
-        eval $(dircolors -b /etc/dircolors)
-
-        if [ -f "$HOME/.dircolors" ] ; then
-                eval $(dircolors -b $HOME/.dircolors)
-        fi
-fi
-alias ls='ls --color=auto'
diff --git a/config/profile.d/extrapaths.sh b/config/profile.d/extrapaths.sh
deleted file mode 100644
index bb8f720..0000000
--- a/config/profile.d/extrapaths.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-if [ -d /usr/local/bin ]; then
-        pathprepend /usr/local/bin
-fi
-if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
-        pathprepend /usr/local/sbin
-fi
-for directory in $(find /opt/*/bin -type d 2>/dev/null); do
-        pathappend $directory
-done
-if [ -d ~/bin ]; then
-        pathprepend ~/bin
-fi
-#if [ $EUID -gt 99 ]; then
-#        pathappend .
-#fi
diff --git a/config/profile.d/i18n.sh b/config/profile.d/i18n.sh
index ac68d67..2f66e89 100644
--- a/config/profile.d/i18n.sh
+++ b/config/profile.d/i18n.sh
@@ -1,2 +1,10 @@
 # Set up i18n variables
-export LANG=en_US.utf8
+
+if [ -f "/etc/sysconfig/console" ]; then
+	. /etc/sysconfig/console
+else
+	LANG=en_US.UTF-8
+fi
+
+unset KEYMAP FONT UNICODE KEYMAP_CORRECTIONS LEGACY_CHARSET
+export LANG
diff --git a/config/profile.d/lang.sh b/config/profile.d/lang.sh
new file mode 100644
index 0000000..5be62ad
--- /dev/null
+++ b/config/profile.d/lang.sh
@@ -0,0 +1,90 @@
+# /etc/profile.d/lang.sh - set i18n stuff
+
+sourced=0
+
+if [ -n "$LANG" ]; then
+    saved_lang="$LANG"
+    [ -f "$HOME/.i18n" ] && . "$HOME/.i18n" && sourced=1
+    LANG="$saved_lang"
+    unset saved_lang
+else
+    for langfile in /etc/sysconfig/i18n "$HOME/.i18n" ; do
+        [ -f $langfile ] && . $langfile && sourced=1
+    done
+fi
+
+if [ "$sourced" = 1 ]; then
+    [ -n "$LANG" ] && export LANG || unset LANG
+    [ -n "$LC_ADDRESS" ] && export LC_ADDRESS || unset LC_ADDRESS
+    [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
+    [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
+    [ -n "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION || unset LC_IDENTIFICATION
+    [ -n "$LC_MEASUREMENT" ] && export LC_MEASUREMENT || unset LC_MEASUREMENT
+    [ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
+    [ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
+    [ -n "$LC_NAME" ] && export LC_NAME || unset LC_NAME
+    [ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
+    [ -n "$LC_PAPER" ] && export LC_PAPER || unset LC_PAPER
+    [ -n "$LC_TELEPHONE" ] && export LC_TELEPHONE || unset LC_TELEPHONE
+    [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME
+    if [ -n "$LC_ALL" ]; then
+       if [ "$LC_ALL" != "$LANG" ]; then
+         export LC_ALL
+       else
+         unset LC_ALL
+       fi
+    else
+       unset LC_ALL
+    fi
+    [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
+    [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
+    [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
+    
+    consoletype=$CONSOLETYPE
+    if [ -z "$consoletype" ]; then
+      consoletype=$(/sbin/consoletype stdout)
+    fi
+
+    if [ -n "$LANG" ]; then
+      case $LANG in
+    	*.utf8*|*.UTF-8*)
+    	if [ "$TERM" = "linux" ]; then
+    	    if [ "$consoletype" = "vt" ]; then
+    	    	case $LANG in 
+    	    		ja*) LANG=en_US.UTF-8 ;;
+    	    		ko*) LANG=en_US.UTF-8 ;;
+			si*) LANG=en_US.UTF-8 ;;
+    	    		zh*) LANG=en_US.UTF-8 ;;
+    	    		ar*) LANG=en_US.UTF-8 ;;
+    	    		fa*) LANG=en_US.UTF-8 ;;
+    	    		he*) LANG=en_US.UTF-8 ;;
+    	    		en_IN*) ;;
+    	    		*_IN*) LANG=en_US.UTF-8 ;;
+    	    	esac
+            fi
+        fi
+	;;
+	*)
+	if [ "$TERM" = "linux" ]; then
+	    if [ "$consoletype" = "vt" ]; then
+    	    	case $LANG in 
+    	    		ja*) LANG=en_US ;;
+    	    		ko*) LANG=en_US ;;
+			si*) LANG=en_US ;;
+    	    		zh*) LANG=en_US ;;
+    	    		ar*) LANG=en_US ;;
+    	    		fa*) LANG=en_US ;;
+    	    		he*) LANG=en_US ;;
+    	    		en_IN*) ;;
+    	    		*_IN*) LANG=en_US ;;
+    	    	esac
+	    fi
+	fi
+	;;
+      esac
+    fi
+
+    unset SYSFONTACM SYSFONT consoletype
+fi
+unset sourced
+unset langfile
diff --git a/config/profile.d/term256.sh b/config/profile.d/term256.sh
new file mode 100644
index 0000000..546f67b
--- /dev/null
+++ b/config/profile.d/term256.sh
@@ -0,0 +1,26 @@
+# Enable 256 color capabilities for appropriate terminals
+
+# Set this variable in your local shell config (such as ~/.bashrc)
+# if you want remote xterms connecting to this system, to be sent 256 colors.
+# This must be set before reading global initialization such as /etc/bashrc.
+#   SEND_256_COLORS_TO_REMOTE=1
+
+# Terminals with any of the following set, support 256 colors (and are local)
+local256="$COLORTERM$XTERM_VERSION$ROXTERM_ID$KONSOLE_DBUS_SESSION"
+
+if [ -n "$local256" ] || [ -n "$SEND_256_COLORS_TO_REMOTE" ]; then
+
+  case "$TERM" in
+    'xterm') TERM=xterm-256color;;
+    'screen') TERM=screen-256color;;
+    'Eterm') TERM=Eterm-256color;;
+  esac
+  export TERM
+
+  if [ -n "$TERMCAP" ] && [ "$TERM" = "screen-256color" ]; then
+    TERMCAP=$(echo "$TERMCAP" | sed -e 's/Co#8/Co#256/g')
+    export TERMCAP
+  fi
+fi
+
+unset local256
diff --git a/config/rootfiles/common/collectd b/config/rootfiles/common/collectd
index e29d077..2b9fa28 100644
--- a/config/rootfiles/common/collectd
+++ b/config/rootfiles/common/collectd
@@ -2,6 +2,7 @@ etc/collectd.conf
 etc/collectd.custom
 etc/collectd.precache
 etc/collectd.thermal
+etc/rc.d/init.d/collectd
 etc/rc.d/rc0.d/K50collectd
 etc/rc.d/rc3.d/S29collectd
 etc/rc.d/rc6.d/K50collectd
@@ -11,136 +12,202 @@ etc/rc.d/rc6.d/K50collectd
 #usr/include/collectd/client.h
 #usr/include/collectd/lcc_features.h
 #usr/lib/collectd
+#usr/lib/collectd/apache.a
 #usr/lib/collectd/apache.la
 usr/lib/collectd/apache.so
+#usr/lib/collectd/apcups.a
 #usr/lib/collectd/apcups.la
 usr/lib/collectd/apcups.so
+#usr/lib/collectd/ascent.a
 #usr/lib/collectd/ascent.la
 usr/lib/collectd/ascent.so
+#usr/lib/collectd/battery.a
 #usr/lib/collectd/battery.la
 usr/lib/collectd/battery.so
+#usr/lib/collectd/bind.a
 #usr/lib/collectd/bind.la
 usr/lib/collectd/bind.so
+#usr/lib/collectd/conntrack.a
 #usr/lib/collectd/conntrack.la
 usr/lib/collectd/conntrack.so
+#usr/lib/collectd/contextswitch.a
 #usr/lib/collectd/contextswitch.la
 usr/lib/collectd/contextswitch.so
+#usr/lib/collectd/cpu.a
 #usr/lib/collectd/cpu.la
 usr/lib/collectd/cpu.so
+#usr/lib/collectd/cpufreq.a
 #usr/lib/collectd/cpufreq.la
 usr/lib/collectd/cpufreq.so
+#usr/lib/collectd/curl.a
 #usr/lib/collectd/curl.la
 usr/lib/collectd/curl.so
+#usr/lib/collectd/curl_xml.a
 #usr/lib/collectd/curl_xml.la
 usr/lib/collectd/curl_xml.so
+#usr/lib/collectd/df.a
 #usr/lib/collectd/df.la
 usr/lib/collectd/df.so
+#usr/lib/collectd/disk.a
 #usr/lib/collectd/disk.la
 usr/lib/collectd/disk.so
+#usr/lib/collectd/dns.a
 #usr/lib/collectd/dns.la
 usr/lib/collectd/dns.so
+#usr/lib/collectd/email.a
 #usr/lib/collectd/email.la
 usr/lib/collectd/email.so
+#usr/lib/collectd/entropy.a
 #usr/lib/collectd/entropy.la
 usr/lib/collectd/entropy.so
+#usr/lib/collectd/exec.a
 #usr/lib/collectd/exec.la
 usr/lib/collectd/exec.so
+#usr/lib/collectd/filecount.a
 #usr/lib/collectd/filecount.la
 usr/lib/collectd/filecount.so
+#usr/lib/collectd/fscache.a
 #usr/lib/collectd/fscache.la
 usr/lib/collectd/fscache.so
+#usr/lib/collectd/hddtemp.a
 #usr/lib/collectd/hddtemp.la
 usr/lib/collectd/hddtemp.so
+#usr/lib/collectd/interface.a
 #usr/lib/collectd/interface.la
 usr/lib/collectd/interface.so
+#usr/lib/collectd/iptables.a
 #usr/lib/collectd/iptables.la
 usr/lib/collectd/iptables.so
+#usr/lib/collectd/irq.a
 #usr/lib/collectd/irq.la
 usr/lib/collectd/irq.so
+#usr/lib/collectd/load.a
 #usr/lib/collectd/load.la
 usr/lib/collectd/load.so
+#usr/lib/collectd/logfile.a
 #usr/lib/collectd/logfile.la
 usr/lib/collectd/logfile.so
+#usr/lib/collectd/madwifi.a
 #usr/lib/collectd/madwifi.la
 usr/lib/collectd/madwifi.so
+#usr/lib/collectd/match_empty_counter.a
 #usr/lib/collectd/match_empty_counter.la
 usr/lib/collectd/match_empty_counter.so
+#usr/lib/collectd/match_hashed.a
 #usr/lib/collectd/match_hashed.la
 usr/lib/collectd/match_hashed.so
+#usr/lib/collectd/match_regex.a
 #usr/lib/collectd/match_regex.la
 usr/lib/collectd/match_regex.so
+#usr/lib/collectd/match_timediff.a
 #usr/lib/collectd/match_timediff.la
 usr/lib/collectd/match_timediff.so
+#usr/lib/collectd/match_value.a
 #usr/lib/collectd/match_value.la
 usr/lib/collectd/match_value.so
+#usr/lib/collectd/memory.a
 #usr/lib/collectd/memory.la
 usr/lib/collectd/memory.so
+#usr/lib/collectd/multimeter.a
 #usr/lib/collectd/multimeter.la
 usr/lib/collectd/multimeter.so
+#usr/lib/collectd/network.a
 #usr/lib/collectd/network.la
 usr/lib/collectd/network.so
+#usr/lib/collectd/nfs.a
 #usr/lib/collectd/nfs.la
 usr/lib/collectd/nfs.so
+#usr/lib/collectd/ntpd.a
 #usr/lib/collectd/ntpd.la
 usr/lib/collectd/ntpd.so
+#usr/lib/collectd/olsrd.a
 #usr/lib/collectd/olsrd.la
 usr/lib/collectd/olsrd.so
+#usr/lib/collectd/openvpn.a
 #usr/lib/collectd/openvpn.la
 usr/lib/collectd/openvpn.so
+#usr/lib/collectd/ping.a
 #usr/lib/collectd/ping.la
 usr/lib/collectd/ping.so
+#usr/lib/collectd/powerdns.a
 #usr/lib/collectd/powerdns.la
 usr/lib/collectd/powerdns.so
+#usr/lib/collectd/processes.a
 #usr/lib/collectd/processes.la
 usr/lib/collectd/processes.so
+#usr/lib/collectd/protocols.a
 #usr/lib/collectd/protocols.la
 usr/lib/collectd/protocols.so
+#usr/lib/collectd/python.a
 #usr/lib/collectd/python.la
 usr/lib/collectd/python.so
+#usr/lib/collectd/rrdcached.a
 #usr/lib/collectd/rrdcached.la
 usr/lib/collectd/rrdcached.so
+#usr/lib/collectd/rrdtool.a
 #usr/lib/collectd/rrdtool.la
 usr/lib/collectd/rrdtool.so
+#usr/lib/collectd/sensors.a
 #usr/lib/collectd/sensors.la
 usr/lib/collectd/sensors.so
+#usr/lib/collectd/swap.a
 #usr/lib/collectd/swap.la
 usr/lib/collectd/swap.so
+#usr/lib/collectd/syslog.a
 #usr/lib/collectd/syslog.la
 usr/lib/collectd/syslog.so
+#usr/lib/collectd/table.a
 #usr/lib/collectd/table.la
 usr/lib/collectd/table.so
+#usr/lib/collectd/tail.a
 #usr/lib/collectd/tail.la
 usr/lib/collectd/tail.so
+#usr/lib/collectd/target_notification.a
 #usr/lib/collectd/target_notification.la
 usr/lib/collectd/target_notification.so
+#usr/lib/collectd/target_replace.a
 #usr/lib/collectd/target_replace.la
 usr/lib/collectd/target_replace.so
+#usr/lib/collectd/target_scale.a
 #usr/lib/collectd/target_scale.la
 usr/lib/collectd/target_scale.so
+#usr/lib/collectd/target_set.a
 #usr/lib/collectd/target_set.la
 usr/lib/collectd/target_set.so
+#usr/lib/collectd/tcpconns.a
 #usr/lib/collectd/tcpconns.la
 usr/lib/collectd/tcpconns.so
+#usr/lib/collectd/teamspeak2.a
 #usr/lib/collectd/teamspeak2.la
 usr/lib/collectd/teamspeak2.so
+#usr/lib/collectd/ted.a
 #usr/lib/collectd/ted.la
 usr/lib/collectd/ted.so
+#usr/lib/collectd/thermal.a
 #usr/lib/collectd/thermal.la
 usr/lib/collectd/thermal.so
+#usr/lib/collectd/unixsock.a
 #usr/lib/collectd/unixsock.la
 usr/lib/collectd/unixsock.so
+#usr/lib/collectd/uptime.a
 #usr/lib/collectd/uptime.la
 usr/lib/collectd/uptime.so
+#usr/lib/collectd/users.a
 #usr/lib/collectd/users.la
 usr/lib/collectd/users.so
+#usr/lib/collectd/uuid.a
 #usr/lib/collectd/uuid.la
 usr/lib/collectd/uuid.so
+#usr/lib/collectd/vmem.a
 #usr/lib/collectd/vmem.la
 usr/lib/collectd/vmem.so
+#usr/lib/collectd/wireless.a
 #usr/lib/collectd/wireless.la
 usr/lib/collectd/wireless.so
+#usr/lib/collectd/write_http.a
 #usr/lib/collectd/write_http.la
 usr/lib/collectd/write_http.so
+#usr/lib/libcollectdclient.a
 #usr/lib/libcollectdclient.la
 usr/lib/libcollectdclient.so
 usr/lib/libcollectdclient.so.0
@@ -173,4 +240,3 @@ usr/share/collectd/types.db
 #usr/share/man/man5/collectd.conf.5
 #usr/share/man/man5/types.db.5
 #var/lib/collectd
-etc/rc.d/init.d/collectd
diff --git a/config/rootfiles/common/coreutils b/config/rootfiles/common/coreutils
index 61e9106..5b55a3a 100644
--- a/config/rootfiles/common/coreutils
+++ b/config/rootfiles/common/coreutils
@@ -20,7 +20,7 @@ bin/sleep
 bin/sync
 bin/true
 bin/uname
-etc/dircolors
+etc/DIR_COLORS
 usr/bin/[
 usr/bin/basename
 #usr/bin/cksum
diff --git a/config/rootfiles/common/i586/initscripts b/config/rootfiles/common/i586/initscripts
index 3799487..3b384c8 100644
--- a/config/rootfiles/common/i586/initscripts
+++ b/config/rootfiles/common/i586/initscripts
@@ -3,6 +3,7 @@
 etc/rc.d/helper/getdnsfromdhcpc.pl
 etc/rc.d/helper/writeipac.pl
 #etc/rc.d/init.d
+#etc/rc.d/init.d/acpid
 #etc/rc.d/init.d/alsa
 #etc/rc.d/init.d/amavisd
 etc/rc.d/init.d/apache
@@ -213,6 +214,7 @@ etc/rc.d/rcsysinit.d/S30checkfs
 etc/rc.d/rcsysinit.d/S40mountfs
 etc/rc.d/rcsysinit.d/S45udev_retry
 etc/rc.d/rcsysinit.d/S50cleanfs
+etc/rc.d/rcsysinit.d/S51acpid
 etc/rc.d/rcsysinit.d/S60setclock
 etc/rc.d/rcsysinit.d/S70console
 etc/rc.d/rcsysinit.d/S75firstsetup
diff --git a/config/rootfiles/common/stage2 b/config/rootfiles/common/stage2
index 3d21e4e..b01290c 100644
--- a/config/rootfiles/common/stage2
+++ b/config/rootfiles/common/stage2
@@ -31,11 +31,11 @@ etc/nsswitch.conf
 etc/passwd
 etc/profile
 #etc/profile.d
-etc/profile.d/bashrc.sh
-etc/profile.d/dircolors.sh
-etc/profile.d/extrapaths.sh
+etc/profile.d/colorls.sh
 etc/profile.d/i18n.sh
+etc/profile.d/lang.sh
 etc/profile.d/readline.sh
+etc/profile.d/term256.sh
 etc/profile.d/umask.sh
 etc/resolv.conf
 etc/securetty
@@ -51,6 +51,9 @@ media/usbkey
 mnt
 #opt
 #root
+root/.bash_logout
+root/.bash_profile
+root/.bashrc
 root/ipfire
 #sbin
 #srv
diff --git a/lfs/coreutils b/lfs/coreutils
index c8b4d28..d0f35c2 100644
--- a/lfs/coreutils
+++ b/lfs/coreutils
@@ -109,7 +109,7 @@ ifeq "$(ROOT)" ""
 	mv -v /usr/bin/{head,sleep,nice} /bin
 	ln -sf test /bin/[
 	#ln -sf ../../bin/install /usr/bin
-	dircolors -p > /etc/dircolors
+	dircolors -p > /etc/DIR_COLORS
 else
 	rm /tools/bin/hostname
 endif
diff --git a/lfs/initscripts b/lfs/initscripts
index 573c81e..c9ff24e 100644
--- a/lfs/initscripts
+++ b/lfs/initscripts
@@ -199,10 +199,11 @@ $(TARGET) :
 		ln -sf any /etc/rc.d/init.d/networking/$$i; \
 	done
 
-	# ARM does not need checkfstab
+	# ARM does not need checkfstab and acpid
 ifeq "$(MACHINE_TYPE)" "arm"
-	rm -vf /etc/rc.d/init.d/checkfstab
+	rm -vf /etc/rc.d/init.d/{acpid,checkfstab}
 else
+	ln -sf ../init.d/acpid       /etc/rc.d/rcsysinit.d/S51acpid
 	ln -sf ../init.d/checkfstab  /etc/rc.d/rcsysinit.d/S19checkfstab
 endif
 
diff --git a/lfs/stage2 b/lfs/stage2
index 04291d6..43edd86 100644
--- a/lfs/stage2
+++ b/lfs/stage2
@@ -83,7 +83,11 @@ $(TARGET) :
 	    [ -f $$i ] && cp $$i /etc/profile.d; \
 	done
 	chmod 755 /etc/bashrc
-	ln -svf ../bashrc /etc/profile.d/bashrc.sh
+
+	# Install root's bash files.
+	for i in $(DIR_SRC)/config/bash/dot_*; do \
+		[ -f $$i ] && cp $$i /root/$$(basename $${i/dot_/\.}); \
+	done
 
 	# Scripts
 	for i in `find $(DIR_SRC)/src/scripts -maxdepth 1 -type f`; do \
diff --git a/src/initscripts/init.d/acpid b/src/initscripts/init.d/acpid
new file mode 100644
index 0000000..53fa7c6
--- /dev/null
+++ b/src/initscripts/init.d/acpid
@@ -0,0 +1,48 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/acpid
+#
+# Description : ACPI daemon init script
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+# ACPI daemon is only support on Intel architectures.
+case "$(uname -m)" in
+	i?86)
+		;;
+	*)
+		exit 0
+		;;
+esac
+
+case "${1}" in
+	start)
+		boot_mesg "Starting ACPI daemon..."
+		loadproc /usr/sbin/acpid
+		;;
+
+	stop)
+		boot_mesg "Stopping ACPI daemon..."
+		killproc /usr/sbin/acpid
+		;;
+
+	restart)
+		${0} stop
+		sleep 1
+		${0} start
+		;;
+
+	status)
+		statusproc /usr/sbin/acpid
+		;;
+
+	*)
+		echo "Usage: ${0} {start|stop|restart|status}"
+		exit 1
+		;;
+esac
+
+# End $rc_base/init.d/acpid


hooks/post-receive
--
IPFire 2.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-11 22:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-11 22:32 [git.ipfire.org] IPFire 2.x development tree branch, thirteen, updated. b21b0df6a666936b48592aa825fe1950d32ff21a git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox