commit 84901cf1666059b1b49109a17a4d660f979d5102
parent 5b30372597f9d3ebcc46264d92afa17fd30175e6
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date: Fri, 28 May 2010 00:33:38 +0200
added missing options
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/9vx/main.c b/src/9vx/main.c
@@ -53,6 +53,8 @@ static char inibuf[BOOTARGSLEN];
static char *iniline[MAXCONF];
static int bootboot; /* run /boot/boot instead of bootscript */
static int initrc; /* run rc instead of init */
+static int nogui; /* do not start the gui */
+static int usetty; /* use tty for input/output */
static char* username;
static Mach mach0;
@@ -89,8 +91,6 @@ nop(void)
int
main(int argc, char **argv)
{
- int usetty;
- int nogui;
int nofork;
char buf[1024];
@@ -348,6 +348,12 @@ iniopt(char *name, char *value)
localroot = value;
else if(strcmp(name, "user") == 0)
username = value;
+ else if(strcmp(name, "usetty") == 0)
+ usetty = 1;
+ else if(strcmp(name, "nogui") == 0){
+ nogui = 1;
+ usetty = 1;
+ }
}
void