summaryrefslogtreecommitdiffstats
path: root/bin/housekeeping.sh
blob: b16a5a961cd3922f9cdf5147f13464c423e239e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#/bin/bash

# Copyright 2012 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2

echo 
uptime
echo
df -h
echo

HOUSE=$(ls /chroots/)
if [ "$HOUSE" != "" ] ; then
	figlet "Warning:"
	echo
	echo "Probably manual cleanup needed:"
	echo
	echo "$ ls -la /chroots/"
	ls -la /chroots/
	exit 1
fi

echo "No problems found, all seems good."
figlet "Ok."