mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-03 00:32:54 +02:00
Till now all init scripts going into src/initscripts/init.d so they are installed by the lfs file initscripts. Because of that they also appear in the rootfile of the "package" initscripts. This has some disadvantages: - the initscripts of the packages appear in the 3 rootfiles (one for each arch) which are annoying because for every package with an initscript 4 rootfiles (the 3 of the initscript package + the rootfile of the package) are important. - The rootfiles for a package are installed by lfs/initscripts but this should happen only in the build of the package To solve this issues all rootfiles for the core system are moved into src/initscripts/init.d/common. Only the initscript in this directory are installed by lfs/initscripts. So all initscripts for packages are located in src/initscripts/init.d and are not installed by lfs/initscripts. So only the initscripts of the system appear in the 3 rootfiles of the initscripts package. The initscript of a package appear only in the rootfile of the package. This makes the maintaining of initscript easier. Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
40 lines
869 B
Bash
40 lines
869 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/udev_retry
|
|
#
|
|
# Description : Udev cold-plugging script (retry)
|
|
#
|
|
# Authors : Alexander E. Patrakov
|
|
#
|
|
# Version : 00.02
|
|
#
|
|
# Notes :
|
|
#
|
|
########################################################################
|
|
|
|
. /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
|
|
|
|
# End $rc_base/init.d/udev_retry
|