aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Pigott <dave.pigott@linaro.org>2014-02-12 16:14:02 +0000
committerDave Pigott <dave.pigott@linaro.org>2014-02-12 16:17:54 +0000
commita059eba742393bc6ee0f7af612400f43561ebddd (patch)
tree9295817e4b48b8f8eb77f1803128b2cfbbfaac51
parentc12284b973b02f8e10e50fb5f2c5be4a61757507 (diff)
Fix for oe environments that don't support bash
Change-Id: Id02a853d96dafb4874301fc60399616dd824be14
-rwxr-xr-xinvoke_session_oe4
-rwxr-xr-xsetup_session_oe2
-rwxr-xr-xstop_hacking_oe2
3 files changed, 4 insertions, 4 deletions
diff --git a/invoke_session_oe b/invoke_session_oe
index 08892b3..172ef0b 100755
--- a/invoke_session_oe
+++ b/invoke_session_oe
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Usage ./invoke_session <gateway>
# Hack for now until lava-test-shell is smart enough to know it's dispatcher ip
@@ -12,7 +12,7 @@ ip_addr=$(ifconfig `ip route get $gateway | cut -d ' ' -f3` | grep 'inet addr' |
hostname=$(cat /etc/hostname)
# Set the PATH to use the LAVA api
-echo "export PATH=/lava/bin/:$PATH" > ~/.bashrc
+echo "export PATH=/lava/bin/:$PATH" > ~/.shrc
echo ""
echo ""
diff --git a/setup_session_oe b/setup_session_oe
index 998c70c..5401017 100755
--- a/setup_session_oe
+++ b/setup_session_oe
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Usage ./setup_session <pub_key>
chmod a+x stop_hacking_oe
diff --git a/stop_hacking_oe b/stop_hacking_oe
index b1a42b8..8eb250f 100755
--- a/stop_hacking_oe
+++ b/stop_hacking_oe
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
rm /run/hacking/hacking.pid
rm ~/.ssh/authorized_keys
/etc/init.d/sshd stop