Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37570475
en ru br
ALT Linux repositórios
S:2.8.0-alt2
5.0: 2.0.5-alt3.1
4.1: 2.0.5-alt3
4.0: 2.0.5-alt2
3.0: 2.0.2-alt1

Group :: Sistema/Servidores
RPM: nut

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: nut-2.0.5-alt-drivers.patch
Download


--- nut-2.0.5/drivers/main.c.alt-drivers	2007-07-27 13:40:29 +0400
+++ nut-2.0.5/drivers/main.c	2007-07-27 13:41:51 +0400
@@ -544,6 +544,18 @@ int main(int argc, char **argv)
 
 	upsdebugx(1, "debug level is '%d'", nut_debug_level);
 
+	upsdrv_initups();
+
+	/* now see if things are very wrong out there */
+	if (broken_driver) {
+		printf("Fatal error: broken driver.  It probably needs to be converted.\n");
+		printf("Search for 'broken_driver = 1' in the source for more details.\n");
+		exit(EXIT_FAILURE);
+	}
+
+	if (do_forceshutdown)
+		forceshutdown();
+
 	new_uid = get_user_pwent(user);
 	
 	if (chroot_path)
@@ -562,18 +574,6 @@ int main(int argc, char **argv)
 	/* clear out callback handler data */
 	memset(&upsh, '\0', sizeof(upsh));
 
-	upsdrv_initups();
-
-	/* now see if things are very wrong out there */
-	if (broken_driver) {
-		printf("Fatal error: broken driver. It probably needs to be converted.\n");
-		printf("Search for 'broken_driver = 1' in the source for more details.\n");
-		exit(EXIT_FAILURE);
-	}
-
-	if (do_forceshutdown)
-		forceshutdown();
-
 	/* get the base data established before allowing connections */
 	upsdrv_initinfo();
 	upsdrv_updateinfo();
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009