OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.7 KiB

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