author | harlekin <harlekin> | 2002-05-10 12:09:13 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-10 12:09:13 (UTC) |
commit | c82d743ad5ac1be9b9c3808119bf641ab649f9da (patch) (unidiff) | |
tree | 5135dbe655cd78fee0b5626215cd1357be2d0f9e | |
parent | e7b6e8c14e2c7ed7fe440d018a28ea1b5d3020e5 (diff) | |
download | opie-c82d743ad5ac1be9b9c3808119bf641ab649f9da.zip opie-c82d743ad5ac1be9b9c3808119bf641ab649f9da.tar.gz opie-c82d743ad5ac1be9b9c3808119bf641ab649f9da.tar.bz2 |
bag
-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 | |||
@@ -15,44 +15,44 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib | |||
15 | export PATH=$PATH:$OPIEDIR/bin | 15 | export PATH=$PATH:$OPIEDIR/bin |
16 | 16 | ||
17 | #this sets the iPaqs powerbutton to mapable | 17 | #this sets the iPaqs powerbutton to mapable |
18 | echo 1 > /proc/sys/ts/suspend_button_mode | 18 | echo 1 > /proc/sys/ts/suspend_button_mode |
19 | 19 | ||
20 | if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi | 20 | if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi |
21 | 21 | ||
22 | $OPIEDIR/bin/qpe-reorgfiles | 22 | $OPIEDIR/bin/qpe-reorgfiles |
23 | 23 | ||
24 | . /etc/profile | 24 | . /etc/profile |
25 | 25 | ||
26 | killproc() { | 26 | 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 | ;; |
57 | esac | 57 | esac |
58 | 58 | ||