|
|
@ -7,13 +7,6 @@ mkdir /root/.ssh
|
|
|
|
chmod 700 /root/.ssh
|
|
|
|
chmod 700 /root/.ssh
|
|
|
|
echo "$ssh_key" >> /root/.ssh/authorized_keys
|
|
|
|
echo "$ssh_key" >> /root/.ssh/authorized_keys
|
|
|
|
|
|
|
|
|
|
|
|
# Set root password
|
|
|
|
|
|
|
|
# Given the use case, we do not care it is in plain text here. Still we enter the
|
|
|
|
|
|
|
|
passwd root <<GO
|
|
|
|
|
|
|
|
kokoko
|
|
|
|
|
|
|
|
kokoko
|
|
|
|
|
|
|
|
GO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install bird and maybe other tools
|
|
|
|
# Install bird and maybe other tools
|
|
|
|
apk update
|
|
|
|
apk update
|
|
|
|
apk add bird
|
|
|
|
apk add bird
|
|
|
@ -21,5 +14,6 @@ rc-update add bird default
|
|
|
|
|
|
|
|
|
|
|
|
# Run nameif at boot to set network names
|
|
|
|
# Run nameif at boot to set network names
|
|
|
|
# Doc: https://wiki.alpinelinux.org/wiki/Custom_network_interface_names
|
|
|
|
# Doc: https://wiki.alpinelinux.org/wiki/Custom_network_interface_names
|
|
|
|
echo '-SUBSYSTEM=net;DEVPATH=.*/net/.*;.* root:root 600 @/sbin/nameif -s' >> /etc/mdev.conf
|
|
|
|
# NOTE: This does not seem to work.
|
|
|
|
mkinitfs $(ls /lib/modules)
|
|
|
|
#echo '-SUBSYSTEM=net;DEVPATH=.*/net/.*;.* root:root 600 @/sbin/nameif -s' >> /etc/mdev.conf
|
|
|
|
|
|
|
|
#mkinitfs $(ls /lib/modules)
|
|
|
|