mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
9290192e49
Recently, the souce codes are available. So, we can build FreeBSD native version of PIPS from source instead of just using Linux version. However, some libraries are still shipped as Linux binary. So, we use libmap.conf to solve this problem. Since I have only PM-760C, I cannot test it with other than PM-760C, actually. So, your feedbacks are welcome.
39 lines
754 B
Bash
39 lines
754 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ekpd
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: FreeBSD shutdown
|
|
|
|
# Define these ekpd_* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
# /etc/rc.conf.d/ekpd
|
|
#
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
#
|
|
ekpd_enable=${ekpd_enable:-"NO"} # Enable ekpd
|
|
ekpd_flags=${ekpd_flags:-""} # Flags to ekpd program
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="ekpd"
|
|
rcvar=`set_rcvar`
|
|
command="%%PREFIX%%/libexec/pips/printer/ekpd"
|
|
start_precmd="ekpd_prestart"
|
|
|
|
ekpd_prestart() {
|
|
OLDMASK=`umask`
|
|
umask 000
|
|
[ ! -d /var/ekpd ] && mkdir -p /var/ekpd && chmod 1777 /var/ekpd
|
|
[ ! -e /var/ekpd/ekplp0 ] && rm -f /var/ekpd/ekplp0 && \
|
|
mkfifo -m 666 /var/ekpd/ekplp0
|
|
umask $OLDMASK
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|