2005-02-06 02:52:16 +02:00
|
|
|
#!/bin/sh
|
|
|
|
[ -f /etc/banner ] && cat /etc/banner
|
2005-01-16 13:43:02 +02:00
|
|
|
|
2005-02-06 02:52:16 +02:00
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
2009-01-07 06:38:57 +02:00
|
|
|
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
|
|
|
|
export HOME=${HOME:-/root}
|
2005-02-06 02:52:16 +02:00
|
|
|
export PS1='\u@\h:\w\$ '
|
2005-01-16 13:43:02 +02:00
|
|
|
|
2007-05-14 21:19:07 +03:00
|
|
|
[ -x /bin/more ] || alias more=less
|
|
|
|
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
|
2005-04-18 01:38:25 +03:00
|
|
|
|
2007-03-24 23:51:44 +02:00
|
|
|
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
|
|
|
|
|
2007-05-14 21:19:07 +03:00
|
|
|
[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
|
2007-04-04 01:50:27 +03:00
|
|
|
[ -z /bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
|