Annotation of /trunk/nxnode/patches/nxnode-4.0.0_pre1-magellan.patch
Parent Directory | Revision Log
Revision 1240 -
(hide annotations)
(download)
Thu Dec 23 17:21:35 2010 UTC (13 years, 9 months ago) by niro
File size: 1929 byte(s)
Thu Dec 23 17:21:35 2010 UTC (13 years, 9 months ago) by niro
File size: 1929 byte(s)
updated magellan patches for nx-4.0.0_pre1
1 | niro | 1240 | diff -Naur nxnode/NX/scripts/setup/nxnode nxnode-magellan/NX/scripts/setup/nxnode |
2 | --- nxnode/NX/scripts/setup/nxnode 2010-12-21 11:08:55.000000000 +0100 | ||
3 | +++ nxnode-magellan/NX/scripts/setup/nxnode 2010-12-23 18:14:01.000000000 +0100 | ||
4 | @@ -98,6 +98,11 @@ | ||
5 | return 0 | ||
6 | fi | ||
7 | |||
8 | + if [ -f /etc/mageversion ]; | ||
9 | + then | ||
10 | + system=magellan | ||
11 | + fi | ||
12 | + | ||
13 | return 1 | ||
14 | } | ||
15 | |||
16 | @@ -1957,6 +1962,9 @@ | ||
17 | elif [ "$system" = "mandrake" ]; | ||
18 | then | ||
19 | detectedSystem="Mandriva" | ||
20 | + elif [ "$system" = "magellan" ]; | ||
21 | + then | ||
22 | + detectedSystem="Magellan-Linux" | ||
23 | fi | ||
24 | |||
25 | printMsg "Autodetected system: $detectedSystem" | ||
26 | @@ -2171,6 +2179,7 @@ | ||
27 | echo " Xandros Desktop 4.1/Xandros Server 2.0 etc." | ||
28 | echo " solaris Sun Solaris 10.0 etc." | ||
29 | echo " fedora Fedora 10/11/12/13 etc." | ||
30 | + echo " magellan Magellan-linux 0.8.x/0.9.x/0.10.x etc." | ||
31 | |||
32 | echo "$errMsg" | ||
33 | |||
34 | @@ -2309,6 +2318,7 @@ | ||
35 | "debian" ) ;; | ||
36 | "solaris" ) ;; | ||
37 | "macosx" ) ;; | ||
38 | + "magellan" ) ;; | ||
39 | "" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;; | ||
40 | * ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;; | ||
41 | esac | ||
42 | @@ -2447,6 +2457,7 @@ | ||
43 | /etc/debian_release | ||
44 | /etc/fedora-release | ||
45 | /etc/gentoo-release | ||
46 | +/etc/mageversion | ||
47 | /etc/immunix-release | ||
48 | knoppix_version | ||
49 | /etc/lfs-release | ||
50 | @@ -3826,6 +3837,12 @@ | ||
51 | |||
52 | removeNXinit () { | ||
53 | |||
54 | + # do nothing on magellan | ||
55 | + if [ "$system" = "magellan" ]; | ||
56 | + then | ||
57 | + return | ||
58 | + fi | ||
59 | + | ||
60 | if [ "$system" = "fedora" ] || [ "$system" = "redhat" ] || [ "$system" = "suse" ]; | ||
61 | then | ||
62 | if [ -f "/sbin/chkconfig" ]; | ||
63 | @@ -4030,6 +4047,11 @@ | ||
64 | |||
65 | addNXinit () { | ||
66 | |||
67 | + # do nothing on magellan | ||
68 | + if [ "$system" = "magellan" ] ; then | ||
69 | + return; | ||
70 | + fi | ||
71 | + | ||
72 | if [ "$system" = "macosx" ]; | ||
73 | then | ||
74 | return |