|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -44,7 +44,13 @@
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
|
|
wd=$(pwd)
|
|
|
cd /
|
|
|
-what='Configuration Filesystem (cfgfs), Version 1.06'
|
|
|
+what='Configuration Filesystem Utility (cfgfs), Version 1.06'
|
|
|
+
|
|
|
+who=$(id -u)
|
|
|
+if [ $who -ne 0 ];
|
|
|
+ echo 'Exit. Configuration Filesystem Utility must be run as root.'
|
|
|
+ exit 1
|
|
|
+fi
|
|
|
|
|
|
usage() {
|
|
|
cat >&2 <<EOF
|
|
@@ -109,6 +115,7 @@ EOF
|
|
|
exit 1 ;;
|
|
|
esac
|
|
|
|
|
|
+
|
|
|
uname=$(uname -m)
|
|
|
if [[ "$uname" = "i586" ]];then
|
|
|
part=/dev/sda2
|