From 34e0b3640185bc1801127144e4850336ccada79c Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Wed, 21 Nov 2012 21:03:55 +0000
Subject: [PATCH] updates to 'i2prouter' based on changes to Tanuki's example
 script

---
 installer/resources/i2prouter | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter
index 60ddd72b32..2316001da8 100644
--- a/installer/resources/i2prouter
+++ b/installer/resources/i2prouter
@@ -22,7 +22,7 @@
 #
 #-----------------------------------------------------------------------------
 # These settings can be modified to fit the needs of your application
-# Optimized for use with version 3.5.14 of the Wrapper.
+# Optimized for use with version 3.5.16 of the Wrapper.
 
 # Paths
 # Note that (percent)INSTALL_PATH, (percent)USER_HOME,  and (percent)SYSTEM_java_io_tmpdir
@@ -452,6 +452,10 @@ else
             DIST_ARCH="390"
             DIST_BITS="64"
             ;;
+        'arm*')
+            DIST_ARCH="arm"
+            DIST_BITS="32"
+            ;;
     esac
 fi
 
@@ -643,6 +647,12 @@ checkUser() {
     # Check the configured user.  If necessary rerun this script as the desired user.
     if [ "X$RUN_AS_USER" != "X" ]
     then
+        if [ "`$IDEXE -u -n "$RUN_AS_USER" 2>/dev/null`" != "$RUN_AS_USER" ]
+        then
+            echo 'User $RUN_AS_USER does not exist.'
+            exit 1
+        fi
+
         # Resolve the location of the 'id' command
         IDEXE="/usr/xpg4/bin/id"
         if [ ! -x "$IDEXE" ]
-- 
GitLab