2010-11-01 16:33:02 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
|
|
|
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
|
|
|
|
export HOME=${HOME:-/root}
|
|
|
|
export PS1='\u@\h:\w\$ '
|
|
|
|
|
2010-11-15 04:06:03 +02:00
|
|
|
# NanoNote specific global settings
|
|
|
|
## SDL
|
|
|
|
### we do not have any mouse
|
2010-11-01 16:33:02 +02:00
|
|
|
export SDL_NOMOUSE=1
|
2010-11-15 04:06:03 +02:00
|
|
|
### do use fb-device directly
|
2010-11-01 16:33:02 +02:00
|
|
|
export SDL_VIDEODRIVER=fbcon
|
2010-11-15 04:06:03 +02:00
|
|
|
## QT4
|
|
|
|
### set keyboard device
|
2010-11-16 20:28:43 +02:00
|
|
|
export QWS_KEYBOARD=LinuxInput:/dev/input/event1:keymap=/usr/share/qmaps/ben.qmap
|
2010-11-15 04:06:03 +02:00
|
|
|
### do use fb-device directly
|
|
|
|
export QWS_DISPLAY=linuxfb
|
2010-11-01 16:33:02 +02:00
|
|
|
|
2010-11-14 12:26:53 +02:00
|
|
|
export HISTFILE=$HOME/.ash_history
|
2010-11-17 21:13:21 +02:00
|
|
|
export TERM=linux
|
2010-11-14 12:26:53 +02:00
|
|
|
|
2010-11-01 16:33:02 +02:00
|
|
|
[ -x /bin/more ] || alias more=less
|
|
|
|
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
|
|
|
|
|
|
|
|
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
|
|
|
|
|
|
|
|
[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
|
2010-11-14 12:52:41 +02:00
|
|
|
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
|