blob: d800ee9aac6879103ddf064125419e59bbd4ae86 [file] [log] [blame]
Sergio Slobodrianab11c642017-04-24 07:16:58 -04001#!/bin/bash
2echo "export DOCKER_HOST_IP=$DOCKER_HOST_IP" > /home/voltha/.bashrc
3echo "export PYTHONPATH=/cli" >> /home/voltha/.bashrc
4echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /home/voltha/.bashrc
5echo "export DOCKER_HOST_IP=$DOCKER_HOST_IP" > /home/voltha/.bash_profile
6echo "export PYTHONPATH=/cli" >> /home/voltha/.bash_profile
7echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /home/voltha/.bash_profile
8echo '/cli/cli/main.py -L -C $DOCKER_HOST_IP:8500' >> /home/voltha/.bash_profile
9echo "logout" >> /home/voltha/.bash_profile
10chown voltha.voltha /home/voltha/.bash_profile
11/usr/sbin/sshd -D
12