From c930dbf89b0bb825fb000b0c3e7a411701ffe2c4 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 6 Dec 2002 04:30:19 +0000 Subject: Some updates... --- sources/device_table.txt | 1 + sources/target_skeleton/etc/hostname | 2 +- sources/target_skeleton/etc/init.d/S01mount | 16 ------- sources/target_skeleton/etc/init.d/S15modules | 5 --- sources/target_skeleton/etc/init.d/S20syslogd | 6 --- sources/target_skeleton/etc/init.d/S50networking | 7 ---- sources/target_skeleton/etc/inittab | 15 +++++-- sources/target_skeleton/etc/inputrc | 44 ++++++++++++++++++++ sources/target_skeleton/etc/profile | 53 ++++++++++++++++++++---- 9 files changed, 103 insertions(+), 46 deletions(-) delete mode 100755 sources/target_skeleton/etc/init.d/S01mount delete mode 100755 sources/target_skeleton/etc/init.d/S15modules delete mode 100755 sources/target_skeleton/etc/init.d/S20syslogd delete mode 100755 sources/target_skeleton/etc/init.d/S50networking create mode 100644 sources/target_skeleton/etc/inputrc (limited to 'sources') diff --git a/sources/device_table.txt b/sources/device_table.txt index 5d7602d10..cf3cbb7a0 100644 --- a/sources/device_table.txt +++ b/sources/device_table.txt @@ -3,6 +3,7 @@ /etc d 755 0 0 - - - - - /dev d 755 0 0 - - - - - /dev/pts d 755 0 0 - - - - - +/tmp d 1777 0 0 - - - - - # Fixme -- add support for type 'f' #/bin/tinylogin f 4755 0 0 - - - - - diff --git a/sources/target_skeleton/etc/hostname b/sources/target_skeleton/etc/hostname index 46f514d13..52e67d68a 100644 --- a/sources/target_skeleton/etc/hostname +++ b/sources/target_skeleton/etc/hostname @@ -1 +1 @@ -dev.null +uclibc diff --git a/sources/target_skeleton/etc/init.d/S01mount b/sources/target_skeleton/etc/init.d/S01mount deleted file mode 100755 index 45d0e7bca..000000000 --- a/sources/target_skeleton/etc/init.d/S01mount +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Mount all filesystems. We don't mess with -# fsck, since we don't need it here... - -echo -n "Mounting local file systems: " -/bin/mount / -o remount,rw > /dev/null 2>&1 -/bin/mount -a > /dev/null 2>&1 -if [ $? = 0 ] ; then - echo "ok" -else - echo "failed" -fi - -exit 0 - diff --git a/sources/target_skeleton/etc/init.d/S15modules b/sources/target_skeleton/etc/init.d/S15modules deleted file mode 100755 index 4ede82d67..000000000 --- a/sources/target_skeleton/etc/init.d/S15modules +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -if [ -f /proc/sys/kernel/modprobe ] ; then - echo "/bin/true" >/proc/sys/kernel/modprobe -fi -#/sbin/insmod foo diff --git a/sources/target_skeleton/etc/init.d/S20syslogd b/sources/target_skeleton/etc/init.d/S20syslogd deleted file mode 100755 index e3b0e7de4..000000000 --- a/sources/target_skeleton/etc/init.d/S20syslogd +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -echo -n "Starting system log daemon: " -# start syslogging -/sbin/syslogd -m 0 -echo "ok" diff --git a/sources/target_skeleton/etc/init.d/S50networking b/sources/target_skeleton/etc/init.d/S50networking deleted file mode 100755 index db60359f9..000000000 --- a/sources/target_skeleton/etc/init.d/S50networking +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# start lo all the time -ifconfig lo 127.0.0.1 up -route add -net 127.0.0.0 netmask 255.0.0.0 lo - -hostname -F /etc/hostname diff --git a/sources/target_skeleton/etc/inittab b/sources/target_skeleton/etc/inittab index f31089f13..a6c014e75 100644 --- a/sources/target_skeleton/etc/inittab +++ b/sources/target_skeleton/etc/inittab @@ -13,12 +13,19 @@ # action == one of sysinit, respawn, askfirst, wait, and once # process == program to run -# main rc script +# Startup the system +null::sysinit:/bin/mount -o remount,rw / +null::sysinit:/bin/mount -t proc proc /proc +null::sysinit:/bin/mount -a +null::sysinit:/bin/hostname -F /etc/hostname +null::sysinit:/sbin/ifconfig lo 127.0.0.1 up +null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo +# now run any rc scripts ::sysinit:/etc/init.d/rcS # Set up a couple of getty's -tty1::respawn:/sbin/getty 38400 tty2 -tty2::respawn:/sbin/getty 38400 tty3 +tty1::respawn:/sbin/getty 38400 tty1 +tty2::respawn:/sbin/getty 38400 tty2 # Put a getty on the serial port #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 @@ -27,7 +34,7 @@ tty2::respawn:/sbin/getty 38400 tty3 null::sysinit:/bin/touch /var/log/messages null::respawn:/sbin/syslogd -n -m 0 null::respawn:/sbin/klogd -n -tty4::respawn:/usr/bin/tail -f /var/log/messages +tty3::respawn:/usr/bin/tail -f /var/log/messages # Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot diff --git a/sources/target_skeleton/etc/inputrc b/sources/target_skeleton/etc/inputrc new file mode 100644 index 000000000..2f1cb601a --- /dev/null +++ b/sources/target_skeleton/etc/inputrc @@ -0,0 +1,44 @@ +# /etc/inputrc - global inputrc for libreadline +# See readline(3readline) and `info readline' for more information. + +# Be 8 bit clean. +set input-meta on +set output-meta on +set bell-style visible + +# To allow the use of 8bit-characters like the german umlauts, comment out +# the line below. However this makes the meta key not work as a meta key, +# which is annoying to those which don't need to type in 8-bit characters. + +# set convert-meta off + +"\e0d": backward-word +"\e0c": forward-word +"\e[h": beginning-of-line +"\e[f": end-of-line +"\e[1~": beginning-of-line +"\e[4~": end-of-line +#"\e[5~": beginning-of-history +#"\e[6~": end-of-history +"\e[3~": delete-char +"\e[2~": quoted-insert + +# Common standard keypad and cursor +# (codes courtsey Werner Fink, ) +#"\e[1~": history-search-backward +"\e[2~": yank +"\e[3~": delete-char +#"\e[4~": set-mark +"\e[5~": history-search-backward +"\e[6~": history-search-forward +# Normal keypad and cursor of xterm +"\e[F": end-of-line +"\e[H": beginning-of-line +# Application keypad and cursor of xterm +"\eOA": previous-history +"\eOC": forward-char +"\eOB": next-history +"\eOD": backward-char +"\eOF": end-of-line +"\eOH": beginning-of-line + diff --git a/sources/target_skeleton/etc/profile b/sources/target_skeleton/etc/profile index 66ef8fedf..cc2e0beb8 100644 --- a/sources/target_skeleton/etc/profile +++ b/sources/target_skeleton/etc/profile @@ -1,9 +1,48 @@ -PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -alias ll='ls -l' +# ~/.bashrc: executed by bash(1) for non-login interactive shells. -echo " " -echo " " -echo "Welcome to the busybox/uClibc usermode-linux test environment" -echo " " -echo " " +export PATH=\ +/bin:\ +/sbin:\ +/usr/bin:\ +/usr/sbin:\ +/usr/bin/X11:\ +/usr/local/bin +# If running interactively, then: +if [ "$PS1" ]; then + + if [ "$BASH" ]; then + export PS1="[\u@\h \W]\\$ " + alias ll='/bin/ls --color=tty -laFh' + alias ls='/bin/ls --color=tty -F' + export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:'; + else + if [ "`id -u`" -eq 0 ]; then + export PS1='# ' + else + export PS1='$ ' + fi + fi + + export USER=`id -un` + export LOGNAME=$USER + export HOSTNAME=`/bin/hostname` + export HISTSIZE=1000 + export HISTFILESIZE=1000 + export PAGER='/bin/more ' + export EDITOR='/bin/vi' + export INPUTRC=/etc/inputrc + export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile + + ### Some aliases + alias ps2='ps facux ' + alias ps1='ps faxo "%U %t %p %a" ' + alias af='ps af' + alias cls='clear' + alias df='df -h' + alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 ' + #alias bc='bc -l' + alias minicom='minicom -c on' + alias calc='calc -Cd ' + alias bc='calc -Cd ' +fi; -- cgit v1.2.3