From b3eb70b5bb0aeb6c9f07bd96ec983eabe080ba73 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 2 Dec 2008 14:10:25 +0200 Subject: initramfs-module-bootmenu: If dropbear available, start it if user drops to shell. --- packages/initrdscripts/files/30-bootmenu.sh | 10 ++++++++++ packages/initrdscripts/initramfs-module-bootmenu_1.0.bb | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/initrdscripts/files/30-bootmenu.sh b/packages/initrdscripts/files/30-bootmenu.sh index c77bd662af..5ebeead430 100644 --- a/packages/initrdscripts/files/30-bootmenu.sh +++ b/packages/initrdscripts/files/30-bootmenu.sh @@ -147,6 +147,16 @@ path=`expr "$sel" : '[^/]*\([^ ]*\).*'` fstype=`expr "$sel" : '[^ ]* *\(.*\)'` if [ "$dev" == "Shell" ]; then + if [ -x /usr/sbin/dropbear ]; then + modprobe g_ether + ifconfig usb0 192.168.2.202 + mkdir -p /dev/pts + mount -t devpts devpts /dev/pts + export PATH=$PATH:/usr/sbin + /usr/sbin/dropbear -E + echo "Started dropbear @192.168.2.202" + fi + exec /bin/sh elif [ "$dev" == "NFS" ]; then ROOT_DEVICE="/dev/nfs" diff --git a/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb b/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb index 5893420742..f4fd3beee2 100644 --- a/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb +++ b/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb @@ -1,5 +1,5 @@ SRC_URI = "file://30-bootmenu.sh" -PR = "r17" +PR = "r18" DESCRIPTION = "An initramfs module with UI for selection of boot device." RDEPENDS = "klibc-utils-static-fstype initramfs-uniboot initramfs-module-block initramfs-module-loop initramfs-module-nfs" # For VFAT mounting. -- cgit v1.2.3