Skip to content

Commit

Permalink
Create /etc/network/if-post-{up,down}.d directories
Browse files Browse the repository at this point in the history
They are not created by default and the script prints warning when they
don't exist.
  • Loading branch information
jirutka committed Sep 3, 2023
1 parent 2b2f902 commit 1d7f62b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions alpine-make-vm-image
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ cat > etc/network/interfaces <<-EOF
post-down /etc/network/if-post-down.d/*
EOF

mkdir -p etc/network/if-post-up.d
mkdir -p etc/network/if-post-down.d

if [ "$SERIAL_PORT" ]; then
echo "$SERIAL_PORT" >> etc/securetty
sed -Ei "s|^[# ]*($SERIAL_PORT:.*)|\1|" etc/inittab
Expand Down

0 comments on commit 1d7f62b

Please sign in to comment.