16 lines
232 B
Bash
Executable file
16 lines
232 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
source /etc/profile
|
|
|
|
echo "Cleaning up"
|
|
|
|
rm /script.sh
|
|
|
|
echo 'Removing temporary files...'
|
|
rm -rf /tmp/*
|
|
|
|
echo 'cleaning up dhcp leases'
|
|
rm -f /var/lib/dhcp/*
|
|
|
|
echo 'Removing downloaded packages...'
|
|
apt-get clean
|