-rwxr-xr-x | etc/init.d/qpe | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.d/qpe b/etc/init.d/qpe index 799f806..8019265 100755 --- a/etc/init.d/qpe +++ b/etc/init.d/qpe | |||
@@ -27,30 +27,30 @@ killproc() { | |||
27 | pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` | 27 | pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` |
28 | [ "$pid" != "" ] && kill $pid | 28 | [ "$pid" != "" ] && kill $pid |
29 | } | 29 | } |
30 | 30 | ||
31 | case $1 in | 31 | case $1 in |
32 | 'start') | 32 | 'start') |
33 | echo "Starting QPE..." | 33 | echo "Starting QPE..." |
34 | 34 | ||
35 | cd $HOME | 35 | cd $HOME |
36 | 36 | ||
37 | rm -f /etc/rc2.d/S99x # Can't have both running! | 37 | rm -f /etc/rc2.d/S99x # Can't have both running! |
38 | 38 | ||
39 | case odule_id in | 39 | case `module_id` in |
40 | "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; | 40 | "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; |
41 | "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 41 | "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; |
42 | "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 42 | "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; |
43 | "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; | 43 | "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; |
44 | *) echo "Unknown processor type - odule_id-!" ;; | 44 | *) echo "Unknown processor type -`module_id`-!" ;; |
45 | esac | 45 | esac |
46 | 46 | ||
47 | $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & | 47 | $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & |
48 | 48 | ||
49 | ;; | 49 | ;; |
50 | 'stop') | 50 | 'stop') |
51 | echo "Killing QPE..." | 51 | echo "Killing QPE..." |
52 | killproc qpe | 52 | killproc qpe |
53 | ;; | 53 | ;; |
54 | *) | 54 | *) |
55 | echo "usage: $0 { start | stop }" | 55 | echo "usage: $0 { start | stop }" |
56 | ;; | 56 | ;; |