rentgendroid/android/conf/docker-entrypoint.sh

13 lines
431 B
Bash

hashed_name=`openssl x509 -inform PEM -subject_hash_old -in /ca-cert.cer | head -1`
cp /ca-cert.cer /$hashed_name.0
bash /conf/iptables_conf.sh
redsocks -c /conf/redsocks.conf &
emulator -avd virtual_dev -writable-system -no-window -no-audio &
bash /conf/install_cert.sh $hashed_name.0
#wait for cert to be installed before being able to connect through ssh
echo root:toor | chpasswd
bash /conf/sshd_config.sh
tail -f /dev/null