|
|
|
#!/bin/sh
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../sysvinit/config-720.in
|
|
|
|
# Copyright (C) 2006 The OpenSDE Project
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
menu_begin MENU_INIT 'Selecting Init'
|
|
|
|
# Any package available with INIT flag can be _the_ Init.
|
|
|
|
# We will prefer sysvinit, and if no INIT is available a warning
|
|
|
|
# will be shown
|
|
|
|
# Not being _the_ init doesn't mean the package should be disabled,
|
|
|
|
# because it may have usefull tools too.
|
|
|
|
# //mnemoc
|
|
|
|
|
|
|
|
CFGTEMP_INIT_LIST=
|
|
|
|
|
|
|
|
for x in `grep -e ' INIT ' $cfgtmpdir/config/packages | cut -d' ' -f5`; do
|
|
|
|
var_append CFGTEMP_INIT_LIST ' ' \
|
|
|
|
"$x $x,_$( grep -e '^\[I\]' package/*/$x/$x.desc \
|
|
|
|
| cut -d' ' -f2- | tr ' ' '_' )"
|
|
|
|
done
|
|
|
|
|
|
|
|
var_append CFGTEMP_INIT_LIST ' ' "none No_init_(at_your_own_risk)"
|
|
|
|
|
|
|
|
choice SDECFG_INIT sysvinit $CFGTEMP_INIT_LIST
|
|
|
|
|
|
|
|
# default init must get enabled
|
|
|
|
[ "$SDECFG_INIT" != "none" ] && pkgenable $SDECFG_INIT
|
|
|
|
|
|
|
|
comment ' '
|
|
|
|
|
|
|
|
# do package specific config
|
|
|
|
[ -s $cfgtmpdir/subconfig-init.in ] && . $cfgtmpdir/subconfig-init.in
|
|
|
|
|
|
|
|
if [ -n "$CFGTEMP_INIT_INITSTYLES" ]; then
|
|
|
|
comment '-- Select Init Style'
|
|
|
|
|
|
|
|
# backguard compatibility
|
|
|
|
[ -z "$SDECFG_INIT_STYLE" ] && SDECFG_INIT_STYLE="$SDECFG_PKG_SYSVINIT_INITSTYLE"
|
|
|
|
|
|
|
|
choice SDECFG_INIT_STYLE sysv_nice $CFGTEMP_INIT_INITSTYLES
|
|
|
|
fi
|
|
|
|
menu_end
|