34cb96d60c
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14140 3c298f89-4303-0410-b956-a3cf2f4a3e73
33 lines
711 B
Bash
Executable File
33 lines
711 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
START=99
|
|
|
|
ARGS=""
|
|
|
|
screen() {
|
|
local cfg="$1"
|
|
config_get resolution $cfg resolution
|
|
config_get dpi $cfg dpi
|
|
[ -n "$resolution" ] && ARGS="$ARGS -screen $resolution"
|
|
[ -n "$dpi" ] && ARGS="$ARGS -dpi $dpi"
|
|
}
|
|
|
|
desktop() {
|
|
local cfg="$1"
|
|
config_get autostart $cfg autostart
|
|
[ -n "$autostart" ] && eval $autostart &
|
|
}
|
|
|
|
start() {
|
|
export DISPLAY=":0"
|
|
config_load x11
|
|
config_foreach screen screen
|
|
TSLIB_TSDEVICE="/dev/event1" Xglamo $ARGS &
|
|
config_foreach desktop desktop
|
|
#test -d /etc/xdg/autostart || exit
|
|
#for elem in `ls /etc/xdg/autostart/`; do
|
|
# exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"`
|
|
# eval ${exec#*=} &
|
|
#done
|
|
}
|