]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/e17/entrance/use-bash.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / e17 / entrance / use-bash.patch
1 diff -Nur entrance~/src/client/entrance_session.c entrance/src/client/entrance_session.c
2 --- entrance~/src/client/entrance_session.c     2006-02-02 19:51:40.000000000 -0800
3 +++ entrance/src/client/entrance_session.c      2006-02-02 19:59:24.000000000 -0800
4 @@ -495,7 +495,7 @@
5     entrance_session_free(e);
6     /* replace this process with a clean small one that just waits for its */
7     /* child to exit.. passed on the cmd-line */
8 -   execl("/bin/sh", "/bin/sh", "-l", "-c", buf, NULL);
9 +   execl("/bin/bash", "/bin/bash", "-l", "-c", buf, NULL);
10  }
11  
12  
13 diff -Nur entrance~/src/client/main.c entrance/src/client/main.c
14 --- entrance~/src/client/main.c 2006-02-02 19:51:40.000000000 -0800
15 +++ entrance/src/client/main.c  2006-02-02 19:57:24.000000000 -0800
16 @@ -392,7 +392,7 @@
17        {
18          case 0:
19             if (execl
20 -               ("/bin/sh", "/bin/sh", "-c", "/sbin/shutdown -r now", NULL))
21 +               ("/bin/bash", "/bin/bash", "-c", "/sbin/shutdown -r now", NULL))
22             {
23                syslog(LOG_CRIT,
24                       "Reboot failed: Unable to execute /sbin/shutdown");
25 @@ -434,7 +434,7 @@
26        {
27          case 0:
28             if (execl
29 -               ("/bin/sh", "/bin/sh", "-c", "/sbin/shutdown -h now", NULL))
30 +               ("/bin/bash", "/bin/bash", "-c", "/sbin/shutdown -h now", NULL))
31             {
32                syslog(LOG_CRIT,
33                       "Shutdown failed: Unable to execute /sbin/shutdown");
34 diff -Nur entrance~/src/daemon/entrance_wrapper.in entrance/src/daemon/entrance_wrapper.in
35 --- entrance~/src/daemon/entrance_wrapper.in    2006-02-02 19:51:40.000000000 -0800
36 +++ entrance/src/daemon/entrance_wrapper.in     2006-02-02 19:56:43.000000000 -0800
37 @@ -1,4 +1,4 @@
38 -#!/bin/sh
39 +#!/bin/bash
40  # Wrapper script to set up login environment:
41  # Load up all the junk in /etc/profile first, and then
42  # pass control to entrance proper.
43 diff -Nur entrance~/src/daemon/spawner.c entrance/src/daemon/spawner.c
44 --- entrance~/src/daemon/spawner.c      2006-02-02 19:51:40.000000000 -0800
45 +++ entrance/src/daemon/spawner.c       2006-02-02 19:57:10.000000000 -0800
46 @@ -162,7 +162,7 @@
47          sigaction(SIGUSR1, &_entrance_x_sa, NULL);
48        /* FIXME: need to parse command and NOT go thru /bin/sh!!!! */
49        /* why? some /bin/sh's wont pass on this SIGUSR1 thing... */
50 -        execl("/bin/sh", "/bin/sh", "-c", x_cmd, NULL);
51 +        execl("/bin/bash", "/bin/bash", "-c", x_cmd, NULL);
52          syslog(LOG_WARNING, "Could not execute X server.");
53          exit(1);
54       default: