From c69817eeb2b22f3d46d913f00c87554a6f5fbe00 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 9 May 2010 01:35:50 +0200 Subject: [PATCH] bash: - moving init scripts to start shell from busybox --- packages/sysutils/{busybox => bash}/init.d/00_debugshell | 4 +++- packages/sysutils/{busybox => bash}/init.d/99_shell | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) rename packages/sysutils/{busybox => bash}/init.d/00_debugshell (84%) rename packages/sysutils/{busybox => bash}/init.d/99_shell (83%) diff --git a/packages/sysutils/busybox/init.d/00_debugshell b/packages/sysutils/bash/init.d/00_debugshell similarity index 84% rename from packages/sysutils/busybox/init.d/00_debugshell rename to packages/sysutils/bash/init.d/00_debugshell index 556c21174c..1cf835f95e 100755 --- a/packages/sysutils/busybox/init.d/00_debugshell +++ b/packages/sysutils/bash/init.d/00_debugshell @@ -2,6 +2,8 @@ # # runlevels: openelec, textmode +. /etc/profile + TTY="3" if [ "$DEBUG" = "yes" ]; then @@ -12,6 +14,6 @@ if [ "$DEBUG" = "yes" ]; then echo "## ...... switch with ctrl-alt-f$TTY ...... ##" echo "###########################################" - exec /sbin/getty -n -l /bin/sh 38400 tty$TTY & + exec /sbin/getty -n -l /bin/bash 38400 tty$TTY & fi diff --git a/packages/sysutils/busybox/init.d/99_shell b/packages/sysutils/bash/init.d/99_shell similarity index 83% rename from packages/sysutils/busybox/init.d/99_shell rename to packages/sysutils/bash/init.d/99_shell index 96305a951c..a61ccd115b 100755 --- a/packages/sysutils/busybox/init.d/99_shell +++ b/packages/sysutils/bash/init.d/99_shell @@ -2,6 +2,8 @@ # # runlevels: textmode +. /etc/profile + TTY="1" echo "###########################################" @@ -11,5 +13,5 @@ echo "## ...... switch with ctrl-alt-f$TTY ...... ##" echo "###########################################" while true; do - exec /sbin/getty -n -l /bin/sh 38400 tty$TTY + exec /sbin/getty -n -l /bin/bash 38400 tty$TTY done