#!/bin/bash
|
|
|
|
echo "Warning: This will delete all video files in the directory livesystem/"
|
|
read -p "Are you sure [yes/no] ? " sure
|
|
[ "$sure" != "yes" ] && exit
|
|
|
|
for x in livesystem/* ; do
|
|
found=0
|
|
for y in bin boot dev etc home lib linuxrc opt proc root sbin sys tmp usr var ; do
|
|
[ "${x#livesystem/}" == "$y" ] && found=1
|
|
done
|
|
[ $found -eq 1 ]&& continue
|
|
echo -n "removing ${x#livesystem/} ... "
|
|
rm -rf livesystem/${x#livesystem/}
|
|
echo "done"
|
|
done
|
|
|
|
echo "Cleanup finished"
|
|
|