#!/bin/bash

#Generate new host keys, if old ones are deleted
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server

#Turn off red LED
echo 7 > /sys/class/gpio/export
echo high > /sys/class/gpio/gpio7/direction
echo 7 > /sys/class/gpio/unexport

#Disable SPI routing of UART2 and 3 pins
tshwctl --addr 0x2a --poke 0x4


