diff -Naur NX/scripts/setup/nxnode NX-magellan/scripts/setup/nxnode --- NX/scripts/setup/nxnode 2007-06-20 17:52:07.000000000 +0200 +++ NX-magellan/scripts/setup/nxnode 2007-06-27 17:00:38.000000000 +0200 @@ -1134,6 +1134,12 @@ removeNXinit () { + # do nothing on magellan + if [ "$system" = "magellan" ]; + then + return + fi + runCommand "$RMCOMMAND -f /etc/init.d/nxsensor" "Unable to remove '/etc/init.d/nxsensor'" "warn" if [ "$system" = "solaris" ]; @@ -1280,6 +1286,11 @@ addNXinit () { + # do nothing on magellan + if [ "$system" = "magellan" ] ; then + return; + fi + runCommand "cat $NODE_ROOT/scripts/init/nxsensor > /etc/init.d/nxsensor" "Unable to create: '/etc/init.d/nxsensor'" "warn" runCommand "chmod +x /etc/init.d/nxsensor" "Cannot set permissions of '/etc/init.d/nxsensor' file" "warn" @@ -2222,6 +2233,11 @@ system=fedora fi +if [ -f /etc/mageversion ]; +then + system=magellan +fi + if [ "x$system" = "x" -a -f /etc/release ]; then system=solaris @@ -2256,6 +2272,7 @@ "fedora" ) ;; "debian" ) ;; "solaris" ) ;; + "magellan" ) ;; "" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;; * ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;; esac