gns3-registry/packer/alpine-linux/scripts/post_setup.sh

13 lines
229 B
Bash
Raw Normal View History

#!/bin/sh
2020-08-03 10:27:15 +00:00
# restore default sshd configuration
mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config
2020-08-03 10:27:15 +00:00
# clear cache
rm -rf /var/cache/apk/*
# clear uploads
rm -rf /tmp/uploads
# Write 0
2020-08-03 10:27:15 +00:00
dd if=/dev/zero bs=1M of=/zero ; rm -f /zero