summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-12-02 14:10:25 +0200
committerPaul Sokolovsky <pmiscml@gmail.com>2008-12-02 14:10:25 +0200
commitb3eb70b5bb0aeb6c9f07bd96ec983eabe080ba73 (patch)
tree6cbce8ce86c40d27b1e76d7e983ac6c95f380bec /packages/initrdscripts/files
parent7127c5604781e86f3fc11f4e9269de13c058f8b7 (diff)
initramfs-module-bootmenu: If dropbear available, start it if user drops to shell.
Diffstat (limited to 'packages/initrdscripts/files')
-rw-r--r--packages/initrdscripts/files/30-bootmenu.sh10
1 files changed, 10 insertions, 0 deletions
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"