challenge: update

This commit is contained in:
nemunaire 2019-02-24 15:10:08 +01:00
parent e88da74773
commit b42c447d27
4 changed files with 4 additions and 8 deletions

View File

@ -68,14 +68,6 @@ files:
uucp:!::0::::::
operator:!::0::::::
mode: "0640"
- path: etc/periodic/15min/netreboot
contents: |
#!/bin/sh
ping -c 1 172.23.0.1 && \
sleep 3 && \
reboot -f
mode: "0755"
- path: init
source: pkg/challenge/init
mode: "0755"

View File

@ -32,6 +32,7 @@ RUN apk add --no-cache --initdb -p /out \
man \
musl \
nano \
open-iscsi \
openssh-client \
openssh-doc \
openssh-keygen \

View File

@ -1,5 +1,7 @@
#!/bin/sh
init-crypto 2> /dev/null > /dev/null
# FUNCTIONS ###########################################################
# script usage

View File

@ -39,6 +39,7 @@ done
# Randomize time at boot
/bin/date -s 19$((70 + $RANDOM % 30))0$((1 + $RANDOM % 9))0$((1 + $RANDOM % 9))0$((1 + $RANDOM % 9)).0$((1 + $RANDOM % 9))01 > /dev/null
/sbin/sysctl -w kernel.panic_on_oops=1 > /dev/null
/sbin/sysctl -w net.ipv4.ip_default_ttl=4 > /dev/null
# Launch some daemons