initial control feature

TODO--, and this one was pretty expected
after the "invention" of iterators.
This commit is contained in:
Michael Shigorin 2013-07-05 22:43:16 +04:00
parent 37b971f533
commit 42e6674120
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Эта фича предоставляет интерфейс для конфигурирования дистрибутивных
значений по умолчанию control(8); см. тж. http://altlinux.org/control

View File

@ -0,0 +1,8 @@
use/control:
@$(call add_feature)
@$(call add,THE_PACKAGES,control)
@$(call xport,CONTROL)
# some presets
use/control/sudo-su:
@$(call add,CONTROL,su:public sudo:public)

View File

@ -0,0 +1,11 @@
#!/bin/sh
# setup control(8) states
[ -z "$GLOBAL_CONTROL" ] ||
echo "$GLOBAL_CONTROL" \
| tr ' ' '\n' \
| while IFS=':' read facility state; do
[ -z "$facility" -o -z "$state" ] ||
control "$facility" "$state"
done
: