1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../sysvinit/config-720.in
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 menu_begin MENU_INIT 'Init system'
16 # Any package available with INIT flag can be _the_ Init.
17 # We will prefer sysvinit, and if no INIT is available a warning
19 # Not being _the_ init doesn't mean the package should be disabled,
20 # because it may have usefull tools too.
25 for x in `grep -e ' INIT ' config/$config/packages | cut -d' ' -f5`; do
26 var_append CFGTEMP_INIT_LIST ' ' \
27 "$x $x,_$( grep -e '^\[I\]' package/*/$x/$x.desc \
28 | cut -d' ' -f2- | tr ' ' '_' )"
31 if [ -z "$CFGTEMP_INIT_LIST" ]; then
32 CFGTEMP_INIT_LIST="none WARNING:_No_init_was_selected!"
35 choice SDECFG_INIT sysvinit $CFGTEMP_INIT_LIST
37 # default init must get enabled
38 [ "$SDECFG_INIT" != "none" ] && pkgenable $SDECFG_INIT
42 # do package specific config
43 [ -s $cfgtmpdir/subconfig-init.in ] && . $cfgtmpdir/subconfig-init.in
45 if [ -n "$CFGTEMP_INIT_INITSTYLES" ]; then
46 comment '-- Select Init Style'
48 # backguard compatibility
49 [ -z "$SDECFG_INIT_STYLE" ] && SDECFG_INIT_STYLE="$SDECFG_PKG_SYSVINIT_INITSTYLE"
51 choice SDECFG_INIT_STYLE sysv_nice $CFGTEMP_INIT_INITSTYLES