mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
21 lines
436 B
Bash
Executable File
21 lines
436 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This is an unmanaged node, leave /etc as-is
|
|
/lib/infix/use-etc && exit 0
|
|
|
|
# This is a managed node, ignore all default configuration ...
|
|
# ... except for some core services
|
|
reserved()
|
|
{
|
|
for svc in sysrepo dnsmasq getty lldpd nginx sysklogd; do
|
|
[ "$1" = "${svc}.conf" ] && return 0
|
|
done
|
|
|
|
return 1
|
|
}
|
|
|
|
for file in /etc/finit.d/enabled/*.conf; do
|
|
reserved "$(basename "$file")" && continue
|
|
rm "$file"
|
|
done
|