mkimage-profiles/features.in/init/rootfs/image-scripts.d/40-sysvinit
Michael Shigorin db3da22457 init: sysvinit+NM support
The issue at hand it _nmconnect group that's supported
in ALT NM for polkit-less cases; it has to be added
*before* 50-users hook from deflogin feature fires off.

The existing systemd-related hook has been renamed
to reflect its job better.
2016-11-04 23:21:30 +03:00

11 lines
227 B
Bash
Executable File

#!/bin/sh
# 40: should run before 50-users in deflogin
# the part below relates to sysvinit specifically
rpm -q sysvinit || exit 0
# NM-specific group
case "$GLOBAL_GROUPS" in
*_nmconnect*) groupadd -r _nmconnect ||:;;
esac