#!/bin/sh

## Clean up /etc/udev/rules.d/*net_persistent_names.rules
sed "/^SUBSYSTEM/d" -i /etc/udev/rules.d/*-net_persistent_names.rules

## Clean up command history
rm $HOME/.bash_history

## Clean up the syslogs
rcsyslog stop
rcpostfix stop
rm /var/log/{mail*,messages,lastlog,acpid,boot.*,faillog,localmessages,slpd.log,zmd-*,warn,wtmp}

## Recreate some files
touch /var/log/{lastlog,messages}

