#!/usr/bin/execlineb -P
# Create system users from sysusers.d (OpenRC/runit oneshot).

foreground { install -d -m 0755 /run/opensysusers }

ifelse { test -x /usr/bin/opensysusers-sysusers } {
	ifelse { /usr/bin/opensysusers-sysusers } {
		foreground { touch /run/opensysusers/ok }
		exit 0
	} {
		foreground { rm -f /run/opensysusers/ok }
		exit 1
	}
}

exit 0
