ln -snf /proc/self/fd/1 $udev_root/stdout
ln -snf /proc/self/fd/2 $udev_root/stderr
ln -snf /proc/kcore $udev_root/core
ln -snf /proc/self/fd/1 $udev_root/stdout
ln -snf /proc/self/fd/2 $udev_root/stderr
ln -snf /proc/kcore $udev_root/core
- rm $udev_root/{fd,stdin,stdout,stderr,core}
+ rm -rf $udev_root/{fd,stdin,stdout,stderr,core}
if [ ! -d $sysfs_dir/block ] ; then
echo "fatal: sysfs not mounted"
exit 1
fi
rm -f $udev_root/.udev.tdb
if [ ! -d $sysfs_dir/block ] ; then
echo "fatal: sysfs not mounted"
exit 1
fi
rm -f $udev_root/.udev.tdb