# Custom post build script for sam9g25-isp20 development build

#!/bin/sh
TARGETDIR=$1

# Enable script outputs for debug configuration
sed -i -- 's/OUTPUT_REDIRECT//g' $TARGETDIR/etc/init.d/*
sed -i -- 's/OUTPUT_REDIRECT//g' $TARGETDIR/opt/isp20/*.sh

# Enable root login over ssh
sed -i -- 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' $TARGETDIR/etc/ssh/sshd_config

# Ensure devpts is mounted - may have been removed by a previous release build
sed -i -- 's/^# devpts/devpts/g' $TARGETDIR/etc/fstab
