GNU uname doesn't accept the -p option and thus generates an error
message: "Try `uname --help' for more information.". See the attached
patch.
diff -urN ion-devel-20030814.orig/etc/ioncore-bindings.lua 
ion-devel-20030814/etc/ioncore-bindings.lua
--- ion-devel-20030814.orig/etc/ioncore-bindings.lua    2003-09-25 19:15:54.000000000 
+0200
+++ ion-devel-20030814/etc/ioncore-bindings.lua 2003-09-25 19:17:49.000000000 +0200
@@ -147,7 +147,8 @@
     local f11key, f12key="F11", "F12"
     
     -- If we're on SunOS, we need to remap some keys.
-    if os.execute('uname -s -p|grep "SunOS sparc" > /dev/null')==0 then
+    if os.execute('uname -s|grep SunOS > /dev/null')==0 and
+       os.execute('uname -p|grep sparc > /dev/null')==0 then
         print("ioncore-bindings.lua: Uname test reported SunOS; ".. 
               "mapping F11=Sun36, F12=SunF37.")
         f11key, f12key="SunF36", "SunF37"

Reply via email to