# Create list of files
find /bin /etc /init /sbin /var /dev /lib /root /usr >/tmp/list
#if home is on a device don't save it, if it's in rootfs save it
if /bin/mount | /bin/grep -q home; then
echo /home >> /tmp/list
else
find /home >> /tmp/list
fi
for dir in /proc /sys /tmp /mnt /media /media/cdrom /media/flash /media/usbdisk
do
echo $dir >>/tmp/list
done
It looks like you're new here. If you want to get involved, click one of these buttons!