diff options
Diffstat (limited to 'nxserver-arch.patch')
-rw-r--r-- | nxserver-arch.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nxserver-arch.patch b/nxserver-arch.patch new file mode 100644 index 000000000000..ad42f17d4daf --- /dev/null +++ b/nxserver-arch.patch @@ -0,0 +1,42 @@ +--- a/usr/NX/scripts/setup/nxserver 2012-05-19 03:45:03.000000000 -0600 ++++ b/usr/NX/scripts/setup/nxserver 2012-11-16 09:44:04.615561778 -0700 +@@ -649,6 +649,11 @@ + + removeNXinit () { + ++ if [ "$system" = "arch" ]; then ++ systemctl disable nxserver ++ return 0 ++ fi ++ + if [ "$system" = "fedora" ] || [ "$system" = "redhat" ] || [ "$system" = "suse" ]; + then + if [ -f "/sbin/chkconfig" ]; +@@ -853,6 +858,11 @@ + + addNXinit () { + ++ if [ "$system" = "arch" ]; then ++ systemctl enable nxserver ++ return 0 ++ fi ++ + runCommand "cat $NODE_ROOT/scripts/init/nxserver > /etc/init.d/nxserver" "Unable to create: '/etc/init.d/nxserver'" "warn" + runCommand "chmod +x /etc/init.d/nxserver" "Cannot set permissions of '/etc/init.d/nxserver' file" "warn" + +@@ -2600,6 +2610,7 @@ + echo " debian Debian Woody 3.0, Unstable, Ubuntu, etc." + echo " solaris Sun Solaris 8.0, 9.0, 10.0, etc." + echo " fedora Fedora Core 1, 2, 3, 4, 5, etc. " ++ echo " arch Arch Linux" + + echo "$errMsg" + +@@ -2714,6 +2725,7 @@ + "fedora" ) ;; + "debian" ) ;; + "solaris" ) ;; ++ "arch" ) ;; + "" ) 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 |