From f59115e1025262fe560edfa7c3c1968a73246d7e Mon Sep 17 00:00:00 2001 From: josch Date: Fri, 18 Dec 2009 15:30:19 +0000 Subject: [PATCH] copy pyneo.ini on firstboot --- pyneo-rootfs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index cf5f43f..6830aec 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -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/ 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:]\"\`" print_yellow "Running on \$DEVICE."