#! /bin/sh
# Generated by ../utrans from:
#  6cf7fde4df7681b9a581e1c4440cded4bc390128256dc04a1a66916ab6f3d7f7  ./input/systemd-hwdb-update.service

# kFreeBSD does not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
   set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: systemd-hwdb-update
# Required-Start: 
# Required-Stop: 
# Should-Start: systemd-remount-fs
# Should-Stop: systemd-remount-fs
# Default-Start: 
# Default-Stop: 
# X-Start-Before: systemd-update-done
# X-Stop-After: systemd-update-done
# Description: Rebuild Hardware Database
### END INIT INFO
DESC="Rebuild Hardware Database"
DAEMON="none"
NAME="systemd-hwdb-update"
TYPE="oneshot"
do_start_cmd_override() {
  systemd-hwdb update
}
do_start_prepare() {
  : # WARNING: skipped unsupported ConditionNeedsUpdate /etc
  ( # Triggering conditions
   ( [ -d '/etc/udev/hwdb.d/' ] && files=$(ls -qA -- '/etc/udev/hwdb.d/') && [ -n "$files" ] ) ||
   ( [ ! -e '/usr/lib/udev/hwdb.bin' ] ) ||
   ( [ -e '/etc/udev/hwdb.bin' ] ) 
  ) || do_start_cmd_override() { log_warning_msg " .. Skipped due to no Triggering Conditions" ; }
}
