improve cleanup
remove openssh and wpa_supplicant packages and other config files Networking will still operate as long as services are not stopped
This commit is contained in:
parent
2884acd1a9
commit
8bef9afe65
Binary file not shown.
|
@ -101,11 +101,17 @@ cat <<-EOF >> /etc/conf.d/sshd
|
||||||
rc-service sshd start
|
rc-service sshd start
|
||||||
|
|
||||||
## Prep for final post-cleanup
|
## Prep for final post-cleanup
|
||||||
|
## clears any installed packages and settings
|
||||||
cat <<-EOF > /tmp/.trash/post-cleanup
|
cat <<-EOF > /tmp/.trash/post-cleanup
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
logger -st ${0##*/} "Cleaning-up..."
|
logger -st ${0##*/} "Cleaning-up..."
|
||||||
mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config
|
mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config
|
||||||
mv /etc/conf.d/sshd.orig /etc/conf.d/sshd
|
mv /etc/conf.d/sshd.orig /etc/conf.d/sshd
|
||||||
|
apk del openssh
|
||||||
|
apk del wpa_supplicant
|
||||||
|
rm -rf /etc/wpa_supplicant
|
||||||
|
rm /etc/network/interfaces
|
||||||
|
rm /etc/hostname
|
||||||
rm /etc/modules-load.d/g_ether.conf
|
rm /etc/modules-load.d/g_ether.conf
|
||||||
rm /etc/modprobe.d/g_ether.conf
|
rm /etc/modprobe.d/g_ether.conf
|
||||||
rc-update del local default
|
rc-update del local default
|
||||||
|
|
Loading…
Reference in New Issue