Commit 8c4fbf96 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Add a script to simplify first-time setup.

parent 8af70749
......@@ -24,6 +24,7 @@ echo 'nameserver' >> $DIR/etc/resolv.conf
cp $(which qemu-arm-static) $DIR/usr/bin
cp $DIR/root
cp $DIR/root
chroot $DIR qemu-arm-static /bin/bash /root/
rm $DIR/root/
if [ $# -lt 1 ]; then
echo 1>&2 "$0: not enough arguments"
exit 2
elif [ $# -gt 1 ]; then
echo 1>&2 "$0: too many arguments"
exit 2
apt update && apt upgrade -y && apt autoremove -y
apt install -y \
echo "$RNA_NAME" > /etc/salt/minion_id
echo "master:" > /etc/salt/minion.d/master.conf
service salt-minion restart
sed -i -e "s/odroid/$RNA_NAME/g" /etc/hostname
sed -i -e "s/odroid/$RNA_NAME/g" /etc/hosts
echo "Press any key to continue."
read -n 1 -s
salt-call state.highstate
salt-call state.sls tools
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment