| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #!/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}
- export TSLIB_CALIBFILE=/etc/pointercal
- export TSLIB_CONFFILE=/etc/ts.conf
- export TSLIB_PLUGINDIR=/usr/lib/ts
- export TSLIB_CONSOLEDEVICE=none
- export TSLIB_FBDEVICE=/dev/fb0
- export TSLIB_TSDEVICE=/dev/input/event2
- export QT_BOOT=/usr/lib/arm-qt
- export QTDIR=/usr/lib/arm-qt
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/arm-qt/lib
- export LD_LIBRARY_PATH=$QTDIR/lib:$QTDIR/plugins/platforms:$LD_LIBRARY_PATH
- export QT_PLUGIN_PATH=$QTDIR/plugins
- export QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE
- export QT_QPA_FONTDIR=$QTDIR/lib/fonts
- export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
- export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb1
- export LD_LIBRARY_PATH=/mnt/UDISK/app/lib:${LD_LIBRARY_PATH}
- RUNDIR=/mnt/UDISK
- APPDIR=$RUNDIR/app
- WEBDIR=$RUNDIR/web
- SNMPDIR=$APPDIR/snmp
- # source /etc/qtenv.sh
- export MIBDIRS=$SNMPDIR/mibs
- ulimit -c unlimited
- grep debugfs /proc/filesystems && mount -t debugfs none /sys/kernel/debug
- alias usbhost="cat /sys/devices/platform/soc@3000000/soc@3000000:usbc0@0/usb_host"
- alias usbdevice="cat /sys/devices/platform/soc@3000000/soc@3000000:usbc0@0/usb_device"
- [ -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'
|