Implement the newly chosen error code on the host for the case of an sipb-xen-remctl-auto/1.5
authorEvan Broder <broder@mit.edu>
Wed, 22 Oct 2008 04:48:45 +0000 (00:48 -0400)
committerEvan Broder <broder@mit.edu>
Wed, 22 Oct 2008 04:48:45 +0000 (00:48 -0400)
invalid remctl command

svn path=/trunk/packages/sipb-xen-remctl-auto/; revision=1164

debian/changelog
files/usr/sbin/sipb-xen-remote

index 5ef72a3..e98f615 100644 (file)
@@ -1,3 +1,11 @@
+sipb-xen-remctl-auto (1.5) unstable; urgency=low
+
+  * Distinguish between Xen errors and invalid commands by returning a
+    completely outlandish error code that's not likely to conflict with
+    anything
+
+ -- Evan Broder <broder@mit.edu>  Wed, 22 Oct 2008 00:47:50 -0400
+
 sipb-xen-remctl-auto (1.4) unstable; urgency=low
 
   * Correctly extract the CDROM image from the remctl arguments
index 3ec0c95..a6d1c02 100755 (executable)
@@ -28,13 +28,13 @@ case "$TYPE" in
                ;;
             *)
                 echo "ERROR: invalid subcommand"
-                exit 1
+                exit 34
                 ;;
         esac
        ;;
     *)
         echo "ERROR: invalid command"
-        exit 1
+        exit 34
         ;;
 esac