Skip to content

Commit

Permalink
extend network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
madebyTimo committed Nov 6, 2024
1 parent 188f768 commit 8f1467a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.10.0
v0.11.0
12 changes: 12 additions & 0 deletions scripts/install-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,15 @@ echo "Install default network config on device \"$DEVICE\"."
"curl --silent --location --output /etc/network/interfaces \
https://raw.githubusercontent.com/mbT-Infrastructure/template-config-files/main/debian/\
network-interfaces/interfaces"

"${SCRIPT_DIR}/device-run-command.sh" --device "$DEVICE" --command \
"bash -c 'nmcli --fields UUID,TYPE --terse connection show \
| grep ethernet | cut --delimiter : --fields 1 \
| while read -r CONNECTION; do \
nmcli connection modify \"\\\$CONNECTION\" 802-3-ethernet.wake-on-lan magic; \
done'"

"${SCRIPT_DIR}/device-run-command.sh" --device "$DEVICE" --command \
"curl --silent --location --output /etc/nftables.conf \
https://raw.githubusercontent.com/mbT-Infrastructure/template-config-files/main/debian/\
nftables/pc-debian.nft"
4 changes: 4 additions & 0 deletions scripts/install-pc-wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ done
"${SCRIPT_DIR}/device-run-command.sh" --device "$DEVICE" --command \
"echo 'autologin-user=user' >> /etc/lightdm/lightdm.conf"
"${SCRIPT_DIR}/install-network.sh" --device "$DEVICE"
"${SCRIPT_DIR}/device-run-command.sh" --device "$DEVICE" --command \
"curl --silent --location --output /etc/nftables.conf \
https://raw.githubusercontent.com/mbT-Infrastructure/template-config-files/main/debian/\
nftables/pc-wallet.nft"
"${SCRIPT_DIR}/device-run-command.sh" --device "$DEVICE" --command \
"passwd --delete user && passwd --lock root"
"${SCRIPT_DIR}/device-reboot.sh" --device "$DEVICE"
Expand Down
2 changes: 2 additions & 0 deletions scripts/install-srv-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ while [[ -n "$1" ]]; do
done

"${SCRIPT_DIR}/install-base-debian.sh" --device "$DEVICE"
"${SCRIPT_DIR}/install-base-apps.sh" --device "$DEVICE"
"${SCRIPT_DIR}/install-server-apps.sh" --device "$DEVICE"
"${SCRIPT_DIR}/install-network.sh" --device "$DEVICE"
"${SCRIPT_DIR}/configure-user.sh" --device "$DEVICE" --groups docker --user user
"${SCRIPT_DIR}/device-reboot.sh" --device "$DEVICE"

0 comments on commit 8f1467a

Please sign in to comment.