~ubuntu-branches/ubuntu/utopic/phablet-tools/utopic

« back to all changes in this revision

Viewing changes to phablet-shell

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Giulio Collura, Oliver Grawert, nskaggs
  • Date: 2014-10-02 10:24:53 UTC
  • mfrom: (1.1.81)
  • Revision ID: package-import@ubuntu.com-20141002102453-4yrt01rm7y9pvhos
Tags: 1.1+14.10.20141002-0ubuntu1
[ Giulio Collura ]
* fix phablet-demo-setup (LP: #1373779)

[ Oliver Grawert ]
* phablet-shell: create local ~/.ssh directory if it does not exist,
  stop execution and tell user to generate a key first before re-
  running (LP: #1364913) (LP: #1364913)

[ nskaggs ]
* allow source from outside release pocket, bug 1371241 (LP: #1371241)

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
    adb shell "$CMD >/dev/null"
83
83
}
84
84
 
 
85
# check if we even have a local ssh setup and keys before starting
 
86
# bug 1364913
 
87
if [ ! -d ~/.ssh ]; then
 
88
    echo "no local key, please run the ssh-keygen command first,"
 
89
    echo "then run phablet-shell again"
 
90
    exit 1
 
91
fi
 
92
 
85
93
# if sshd is already runing, do not attempt to start it
86
94
SSH_RUNNING="$(adb shell pgrep sshd)"
87
95
 
98
106
 
99
107
# Purge the device host key so that SSH doesn't print a scary warning about it
100
108
# (it changes every time the device is reflashed and this is expected)
 
109
touch ~/.ssh/known_hosts
101
110
ssh-keygen -f ~/.ssh/known_hosts -R [localhost]:$PORT
102
111
 
103
112
# Copy your ssh id down to the device so you never need a password.