summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/addpart.c4
-rw-r--r--src/adv.c11
2 files changed, 14 insertions, 1 deletions
diff --git a/src/addpart.c b/src/addpart.c
index a365413..0db0e3c 100644
--- a/src/addpart.c
+++ b/src/addpart.c
@@ -29,6 +29,7 @@
#include "common.h"
#include "parti386.h"
#include "partgpt.h"
+#include "parthumax.h"
#include "partmac.h"
#include "partsun.h"
#include "partxbox.h"
@@ -36,6 +37,7 @@
extern const arch_fnct_t arch_gpt;
extern const arch_fnct_t arch_i386;
+extern const arch_fnct_t arch_humax;
extern const arch_fnct_t arch_mac;
extern const arch_fnct_t arch_sun;
extern const arch_fnct_t arch_xbox;
@@ -48,6 +50,8 @@ list_part_t *add_partition_cli(disk_t *disk, list_part_t *list_part, char **curr
return add_partition_gpt_cli(disk, list_part, current_cmd);
else if(disk->arch==&arch_i386)
return add_partition_i386_cli(disk, list_part, current_cmd);
+ else if(disk->arch==&arch_humax)
+ return add_partition_humax_cli(disk, list_part, current_cmd);
else if(disk->arch==&arch_mac)
return add_partition_mac_cli(disk, list_part, current_cmd);
else if(disk->arch==&arch_sun)
diff --git a/src/adv.c b/src/adv.c
index c2cbfea..5786047 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -59,6 +59,7 @@
#include "tntfs.h"
#include "thfs.h"
#include "askloc.h"
+#include "addpart.h"
#include "addpartn.h"
#include "io_redir.h"
@@ -328,6 +329,11 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
(*current_cmd)+=4;
command='t';
}
+ else if(strncmp(*current_cmd,"addpart",7)==0)
+ {
+ (*current_cmd)+=7;
+ command='a';
+ }
else if(strncmp(*current_cmd,"boot",4)==0)
{
(*current_cmd)+=4;
@@ -387,7 +393,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
case 'A':
if(disk_car->arch!=&arch_none)
{
- list_part=add_partition_ncurses(disk_car, list_part);
+ if(*current_cmd!=NULL)
+ list_part=add_partition_cli(disk_car, list_part, current_cmd);
+ else
+ list_part=add_partition_ncurses(disk_car, list_part);
current_element=list_part;
rewrite=1;
}