48 lines
1.5 KiB
Bash
Executable File
48 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
echo "------run profile file-----"
|
|
[ -f /etc/banner ] && cat /etc/banner
|
|
[ -e /tmp/.failsafe ] && cat /etc/banner.failsafe
|
|
fgrep -sq '/ overlay ro,' /proc/mounts && {
|
|
echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
|
|
echo 'Please try to remove files from /overlay/upper/... and reboot!'
|
|
}
|
|
|
|
export PATH="%PATH%"
|
|
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
|
|
export HOME=${HOME:-/root}
|
|
export PS1='\u@\h:\w\$ '
|
|
export LD_LIBRARY_PATH=/usr/lib/eyesee-mpp:${LD_LIBRARY_PATH}
|
|
ulimit -c unlimited
|
|
echo "/tmp/core.%e.%t" > /proc/sys/kernel/core_pattern
|
|
echo 1 > /proc/sys/vm/overcommit_memory
|
|
#mount -t debugfs none /sys/kernel/debug
|
|
|
|
[ -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 /usr/bin/arp ] || arp() { cat /proc/net/arp; }
|
|
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
|
|
|
|
[ -n "$FAILSAFE" ] || {
|
|
for FILE in /etc/profile.d/*.sh; do
|
|
[ -e "$FILE" ] && . "$FILE"
|
|
done
|
|
unset FILE
|
|
}
|
|
[ -x /bin/ll ] || alias ll='ls -al'
|
|
|
|
#export TSLIB_ROOT=/usr/local/tslib
|
|
# export TSLIB_TSDEVICE=/dev/input/event2
|
|
# export TSLIB_TSEVENTTYPE=input
|
|
# export TSLIB_CONFFILE=/mnt/ts.conf
|
|
#export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
|
|
#export TSLIB_CALIBFILE=/etc/pointercal
|
|
# export TSLIB_CALIBFILE=/mnt/pointercal
|
|
|
|
# export TSLIB_PLUGINDIR=/usr/lib/ts
|
|
# export TSLIB_CONSOLEDEVICE=none
|
|
# export TSLIB_FBDEVICE=/dev/fb0
|
|
|