initial control feature
TODO--, and this one was pretty expected after the "invention" of iterators.
This commit is contained in:
parent
37b971f533
commit
42e6674120
2
features.in/control/README
Normal file
2
features.in/control/README
Normal file
@ -0,0 +1,2 @@
|
||||
Эта фича предоставляет интерфейс для конфигурирования дистрибутивных
|
||||
значений по умолчанию control(8); см. тж. http://altlinux.org/control
|
8
features.in/control/config.mk
Normal file
8
features.in/control/config.mk
Normal 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)
|
11
features.in/control/rootfs/image-scripts.d/50-control
Executable file
11
features.in/control/rootfs/image-scripts.d/50-control
Executable 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
|
||||
:
|
Loading…
Reference in New Issue
Block a user