Contents of /trunk/nxnode/patches/nxnode-3.0.0-magellan.patch
Parent Directory | Revision Log
Revision 225 -
(show annotations)
(download)
Thu Jun 28 16:03:10 2007 UTC (17 years, 3 months ago) by niro
File size: 1417 byte(s)
Thu Jun 28 16:03:10 2007 UTC (17 years, 3 months ago) by niro
File size: 1417 byte(s)
-magellanize patch for nxnode
1 | diff -Naur NX/scripts/setup/nxnode NX-magellan/scripts/setup/nxnode |
2 | --- NX/scripts/setup/nxnode 2007-06-20 17:52:07.000000000 +0200 |
3 | +++ NX-magellan/scripts/setup/nxnode 2007-06-27 17:00:38.000000000 +0200 |
4 | @@ -1134,6 +1134,12 @@ |
5 | |
6 | removeNXinit () { |
7 | |
8 | + # do nothing on magellan |
9 | + if [ "$system" = "magellan" ]; |
10 | + then |
11 | + return |
12 | + fi |
13 | + |
14 | runCommand "$RMCOMMAND -f /etc/init.d/nxsensor" "Unable to remove '/etc/init.d/nxsensor'" "warn" |
15 | |
16 | if [ "$system" = "solaris" ]; |
17 | @@ -1280,6 +1286,11 @@ |
18 | |
19 | addNXinit () { |
20 | |
21 | + # do nothing on magellan |
22 | + if [ "$system" = "magellan" ] ; then |
23 | + return; |
24 | + fi |
25 | + |
26 | runCommand "cat $NODE_ROOT/scripts/init/nxsensor > /etc/init.d/nxsensor" "Unable to create: '/etc/init.d/nxsensor'" "warn" |
27 | runCommand "chmod +x /etc/init.d/nxsensor" "Cannot set permissions of '/etc/init.d/nxsensor' file" "warn" |
28 | |
29 | @@ -2222,6 +2233,11 @@ |
30 | system=fedora |
31 | fi |
32 | |
33 | +if [ -f /etc/mageversion ]; |
34 | +then |
35 | + system=magellan |
36 | +fi |
37 | + |
38 | if [ "x$system" = "x" -a -f /etc/release ]; |
39 | then |
40 | system=solaris |
41 | @@ -2256,6 +2272,7 @@ |
42 | "fedora" ) ;; |
43 | "debian" ) ;; |
44 | "solaris" ) ;; |
45 | + "magellan" ) ;; |
46 | "" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;; |
47 | * ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;; |
48 | esac |