Root/data/qi_lb60/files/etc/profile

Source at commit 3c816c4c124461463aa499d72c163b8c433b82ab created 7 years 28 days ago.
By Mirko Vogt, Export NanoNote specific global settings affecting QT4 applications. This results qt4 applications NOT using DirectFB by default.
1#!/bin/sh
2[ -f /etc/banner ] && cat /etc/banner
3echo -n "-------------------------------- version: "
4[ -f /etc/VERSION ] && cat /etc/VERSION
5
6export PATH=/bin:/sbin:/usr/bin:/usr/sbin
7export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
8export HOME=${HOME:-/root}
9export PS1='\u@\h:\w\$ '
10
11# NanoNote specific global settings
12## SDL
13### we do not have any mouse
14export SDL_NOMOUSE=1
15### do use fb-device directly
16export SDL_VIDEODRIVER=fbcon
17## QT4
18### set keyboard device
19export QWS_KEYBOARD=LinuxInput:/dev/input/event1
20### do use fb-device directly
21export QWS_DISPLAY=linuxfb
22
23export HISTFILE=$HOME/.ash_history
24
25[ -x /bin/more ] || alias more=less
26[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
27
28[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
29
30[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
31[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
32

Archive Download this file



interactive