udevstart_no_retval: currently udevstart will always return rc=22
because of the error handling code. I completely removed it because it
is not used, and returning a generic error to the init script is not
much useful anyway.
-static int udev_scan(void)
+static void udev_scan(void)
{
char *devpath;
DIR *dir;
struct dirent *dent;
{
char *devpath;
DIR *dir;
struct dirent *dent;
devpath = "block";
dir = opendir(SYSBLOCK);
devpath = "block";
dir = opendir(SYSBLOCK);
-
- if (retval > 0)
- retval = 0;
-
- return -retval;
{
init_logging("udevstart");
{
init_logging("udevstart");
+ udev_scan();
+
+ return 0;