#!/bin/sh module_id() { # Get model name echo `grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z` } mount /proc 2>/dev/null case $1 in 'start') case `module_id` in "HP IPAQ H3100" ) ARGS="--mono --force-portrait" ;; "HP IPAQ H3600" | "HP IPAQ H3700" | "HP IPAQ H3900" | *COLLIE | *POODLE) ARGS="--flip --force-portrait" ;; "HP IPAQ H3800" | "RAMSES") ARGS="--force-portrait" ;; "SHARP SHEPHERD" | "SHARP HUSKY" | "SHARP CORGI") case `uname -r` in 2.4*) ARGS="--force-landscape --flip" ;; *) ARGS="--force-landscape" ;; esac ;; "SHARP SPITZ" | "SHARP AKITA" | "SHARP BORZOI" ) ARGS="--force-landscape --flip" ;; "HP IPAQ H5400" | "HP IPAQ H2200" ) ;; esac echo "0" > /proc/sys/kernel/printk chvt 2 /usr/bin/gpe-bootsplash $ARGS ;; 'stop') ;; *) esac