: ${bird_enable="NO"}
: ${bird_config="%%PREFIX%%/etc/bird.conf"}
: ${bird_group="birdvty"}
command_args="-P /var/run/${name}.pid -c $bird_config"
command_args="-P /var/run/${name}.pid -c $bird_config -g $bird_group"
run_rc_command "$1"
: ${bird6_enable="NO"}
: ${bird6_config="%%PREFIX%%/etc/bird6.conf"}
: ${bird6_group="birdvty"}
command_args="-P /var/run/${name}.pid -c $bird6_config"
command_args="-P /var/run/${name}.pid -c $bird6_config -g $bird6_group"
-
#!/bin/sh
VTY_GROUP=birdvty
VTY_GROUP_GID=502
case $2 in
POST-INSTALL)
echo "===> Creating users and/or groups."
if ! /usr/sbin/pw groupshow ${VTY_GROUP} >/dev/null 2>&1; then
echo "Creating group ${VTY_GROUP} with gid ${VTY_GROUP_GID}."
/usr/sbin/pw groupadd ${VTY_GROUP} -g ${VTY_GROUP_GID};
else
echo "Using existing group ${VTY_GROUP}."
fi
;;
esac