copy pyneo.ini on firstboot

This commit is contained in:
josch 2009-12-18 15:30:19 +00:00
parent 0493970196
commit f59115e102

View file

@ -286,6 +286,12 @@ echo -n "Copying ssh host keys into place..."
cp /home/persistent/ssh_host_rsa_key /home/persistent/ssh_host_rsa_key.pub /home/persistent/ssh_host_dsa_key /home/persistent/ssh_host_dsa_key.pub /etc/ssh/ cp /home/persistent/ssh_host_rsa_key /home/persistent/ssh_host_rsa_key.pub /home/persistent/ssh_host_dsa_key /home/persistent/ssh_host_dsa_key.pub /etc/ssh/
print_exit_status \$? print_exit_status \$?
if [ -f /home/persistent/pyneo.ini ]; then
echo -n "Copying pyneo.ini into place..."
cp /home/persistent/pyneo.ini /etc/
print_exit_status \$?
fi
DEVICE="\`awk '/^Hardware/ {print \$3}' < /proc/cpuinfo | tr \"[:upper:]\" \"[:lower:]\"\`" DEVICE="\`awk '/^Hardware/ {print \$3}' < /proc/cpuinfo | tr \"[:upper:]\" \"[:lower:]\"\`"
print_yellow "Running on \$DEVICE." print_yellow "Running on \$DEVICE."