#!/bin/bash

cd /usr/local

chown root sbin/*
chmod u+s sbin/*

sbin/rdbrip-arm -fu -s data/rdb-sys.zip

sbin/makecerts-arm -b
sbin/makecerts-arm

# As of v1.2 /etc/systemd/network is used by systemd-networkd to configure the network, prior it was /lib
# so... put the 80-wired.network file in /etc. This file sets the NICs to DHCP.
cp /lib/systemd/network/80-wired.network /etc/systemd/network/

sbin/config-ntp

systemctl restart systemd-timesyncd $( (
	cd /lib/systemd/system
	ls kp*
) | cut -d. -f1)

echo blacklist evbug > /etc/modprobe.d/blacklist
modprobe -r evbug
