2011-02-18 03:42:20 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2021-11-26 15:51:24 +03:00
|
|
|
# $NetBSD: fccache.in,v 1.5 2021/11/26 12:51:24 sborrill Exp $
|
2011-02-18 03:42:20 +03:00
|
|
|
#
|
|
|
|
|
2020-07-04 09:24:53 +03:00
|
|
|
# PROVIDE: fccache
|
2011-02-18 03:42:20 +03:00
|
|
|
# REQUIRE: mountcritremote
|
|
|
|
# BEFORE: DAEMON
|
|
|
|
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
|
|
|
|
name="fccache"
|
2021-11-26 15:51:24 +03:00
|
|
|
rcvar=$name
|
2011-02-18 03:42:20 +03:00
|
|
|
command="@X11ROOTDIR@/bin/fc-cache"
|
|
|
|
start_cmd="fccache_start"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
fccache_start()
|
|
|
|
{
|
|
|
|
if [ -x "${command}" ]; then
|
|
|
|
echo -n "Updating fontconfig cache:"
|
2011-06-15 17:42:46 +04:00
|
|
|
${command}
|
2012-02-07 14:36:01 +04:00
|
|
|
echo " done."
|
2011-02-18 03:42:20 +03:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|