summaryrefslogtreecommitdiff
path: root/scripts/create-menu
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbrodkorb@conet.de>2015-02-10 14:40:51 +0100
committerWaldemar Brodkorb <wbrodkorb@conet.de>2015-02-10 14:40:51 +0100
commit72d22eb4b3ba1f4eccffa1383a80e9f24ac2968b (patch)
tree48c2a0a51916dd628fa874a4994aa04768b43a4b /scripts/create-menu
parent3e1cd4941576f14b67afef673d59eb189c996518 (diff)
add appliance options support
Diffstat (limited to 'scripts/create-menu')
-rwxr-xr-xscripts/create-menu8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/create-menu b/scripts/create-menu
index 94698e8d1..8bd7de4b3 100755
--- a/scripts/create-menu
+++ b/scripts/create-menu
@@ -20,8 +20,12 @@ if [ -d "$topdir/target/appliances" ];then
printf "config ADK_CHOOSE_APPLIANCE\n" >> $topdir/target/config/Config.in.appliances
printf "\tprompt \"choose an appliance\"\n" >> $topdir/target/config/Config.in.appliances
printf "\tboolean\n\n" >> $topdir/target/config/Config.in.appliances
- cat $topdir/target/appliances/* >> $topdir/target/config/Config.in.appliances 2>/dev/null
- printf "\nendchoice\n" >> $topdir/target/config/Config.in.appliances
+ cat $topdir/target/appliances/*.appliance >> $topdir/target/config/Config.in.appliances 2>/dev/null
+ printf "\nendchoice\n\n" >> $topdir/target/config/Config.in.appliances
+ printf "menu \"Appliance Options\"\n" >> $topdir/target/config/Config.in.appliances
+ printf "\tvisible if !ADK_CHOOSE_APPLIANCE\n" >> $topdir/target/config/Config.in.appliances
+ cat $topdir/target/appliances/*.options >> $topdir/target/config/Config.in.appliances 2>/dev/null
+ printf "endmenu\n" >> $topdir/target/config/Config.in.appliances
fi
# create system default