Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | for x in $(cat /proc/cmdline); do |
| 4 | case $x in |
| 5 | splash=false) |
| 6 | echo "Splash Disabled" |
| 7 | exit 0; |
| 8 | ;; |
| 9 | esac |
| 10 | done |
| 11 | |
| 12 | . /etc/init.d/functions |
| 13 | |
| 14 | ### Default config here - gets overriden later |
| 15 | THEME="-t default" |
| 16 | FPS="-fps 30" |
| 17 | ### Override config - if there is a config file - load it. |
| 18 | if test -f /etc/exquisite/config; then |
| 19 | . /etc/exquisite/config |
| 20 | fi |
| 21 | |
| 22 | args='' |
| 23 | case `machine_id` in |
| 24 | "hp_ipaq_h3100"|"hp_ipaq_h3800") |
| 25 | args='-rot 90' ;; |
| 26 | "hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi) |
| 27 | args='-rot 270' ;; |
| 28 | esac |
| 29 | args=$args" $FPS $THEME" |
| 30 | |
| 31 | export EXDIR=/mnt/.splash |
| 32 | export EXQUISITE_IPC=$EXDIR/exquisite |
| 33 | mount tmpfs -t tmpfs $EXDIR -o,size=40k |
| 34 | exquisite -fb -fs $args & |
| 35 | |
| 36 | exquisite-write -wait 120 |
| 37 | exquisite-write "PULSATE" |
| 38 | setterm -blank 0 |
| 39 | setterm -powersave off |
| 40 | setterm -powerdown 0 |