#!/bin/sh ############################################################################### # # # IPFire.org - A linux based firewall # # Copyright (C) 2007-2022 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program. If not, see . # # # ############################################################################### . /etc/sysconfig/rc . ${rc_functions} case "${1}" in start) boot_mesg "Retrying failed uevents, if any..." # Re-trigger the failed uevents in hope they will succeed now # If there are none, the "No such file or directory" error # goes to /dev/null for file in /dev/.udev/failed/*/uevent ; do echo "add" >"${file}" done 2>/dev/null # Now wait for udevd to process the uevents we triggered /bin/udevadm settle evaluate_retval ;; *) echo "Usage ${0} {start}" exit 1 ;; esac