#!/bin/sh
if test $(id -u) != 0; then
 echo Error: You must be root to run this script!
 exit 1
fi
perl -pi -e 's|\n?$|\n|' /etc/fstab
perl -pi -e 's|.*sysfs.*[\n]*||' /etc/fstab
echo none /sys sysfs defaults 0 0 >> /etc/fstab
mkdir -p /sys
mount -a
