#!/bin/sh # # note xinit needs full server path if [ -f /usr/bin/Xfbdev ]; then XSERVER=/usr/bin/Xfbdev fi if [ -f /usr/bin/Xepson ]; then XSERVER=/usr/bin/Xepson fi if [ -f /usr/bin/Xorg ]; then XSERVER=/usr/bin/Xorg fi . /etc/profile fallback_screen_arg() { geom=`fbset | grep geometry` w=`echo $geom | awk '{ print $2 }'` h=`echo $geom | awk '{ print $3 }'` b=`echo $geom | awk '{ print $6 }'` echo -n "${w}x${h}x${b}" } screen_width() { geom=`fbset | grep geometry` w=`echo $geom | awk '{ print $2 }'` echo -n "${w}" } module_id() { ## used to read from assets, but sometimes assets is corrupted # grep "Module ID" /proc/hal/assets | sed "s/.*://" ## used to read from /proc/hal/model, but that is removed in 2.6 # echo ' iPAQ' `cat /proc/hal/model` awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' /tmp/x.log 2>&1