enigma2-3.999git20140624: initial port from opendreambox 2.0 (but it doesn't start)
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-3.999git20140624 / opendreambox-2.2.patch
1 diff -Naur enigma2_3.999git20140624_mips32el.orig/usr/bin/enigma2.sh enigma2_3.999git20140624_mips32el/usr/bin/enigma2.sh
2 --- enigma2_3.999git20140624_mips32el.orig/usr/bin/enigma2.sh   2014-06-24 19:23:34.000000000 +0200
3 +++ enigma2_3.999git20140624_mips32el/usr/bin/enigma2.sh        2014-09-15 16:33:53.454025786 +0200
4 @@ -13,8 +13,8 @@
5         [ -x $i ] && $i || /bin/true
6  done
7  
8 -if [ -d /home/root ]; then
9 -       cd /home/root
10 +if [ -d /root ]; then
11 +       cd /root
12  fi
13  
14  LIBS="$LIBS /usr/lib/libopen.so"
15 @@ -48,25 +48,25 @@
16  ret=$?
17  case $ret in
18         1)
19 -               /sbin/halt
20 +               systemctl --no-block poweroff
21                 ;;
22         2)
23 -               /sbin/reboot
24 +               systemctl --no-block reboot
25                 ;;
26         4)
27                 /sbin/rmmod lcd
28 -               /usr/sbin/fpupgrade --upgrade 2>&1 | tee /home/root/fpupgrade.log
29 +               /usr/sbin/fpupgrade --upgrade 2>&1 | tee /root/fpupgrade.log
30                 sleep 1;
31                 /sbin/rmmod fp
32                 /sbin/modprobe fp
33 -               /sbin/reboot
34 +               systemctl --no-block reboot
35                 ;;
36         6)
37                 /usr/bin/opkgfb
38                 ;;
39         7)
40                 /usr/bin/opkgfb
41 -               /sbin/reboot
42 +               systemctl --no-block reboot
43                 ;;
44         *)
45                 ;;