#!/sbin/openrc-run
# Generated by ../utrans from:
#  6cf7fde4df7681b9a581e1c4440cded4bc390128256dc04a1a66916ab6f3d7f7  ./input/systemd-hwdb-update.service

description="Rebuild Hardware Database."
# Documentation:
#  man:hwdb(7)
#  man:systemd-hwdb(8)

start() {
  systemd-hwdb update
}
depend() {
    before systemd-update-done
    after systemd-remount-fs
}
start_pre() {
  : # 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' ] ) 
  ) || start() { einfo "Skipped due to no Triggering Conditions" ; }
}
