[Frugalware-darcs] setup-current: formatdisk: use fw_system()

VMiklos vmiklos at frugalware.org
Thu Mar 16 18:07:13 CET 2006


[formatdisk: use fw_system()
VMiklos <vmiklos at frugalware.org>**20051111172055] {
hunk ./src/plugins/formatdisk.c 200
-			system(g_strdup_printf("%s %s >%s",
-				MKSWAP, item, LOGDEV));
+			fw_system(g_strdup_printf("%s %s", MKSWAP, item));
hunk ./src/plugins/formatdisk.c 202
-			system(g_strdup_printf("%s -c %s >%s",
-				MKSWAP, item, LOGDEV));
-		system(g_strdup_printf("%s %s >%s", SWAPON, item, LOGDEV));
+			fw_system(g_strdup_printf("%s -c %s", MKSWAP, item));
+		fw_system(g_strdup_printf("%s %s", SWAPON, item));
hunk ./src/setup.h 34
+#define MKSWAP "/sbin/mkswap"
+#define SWAPON "/sbin/swapon"
+
hunk ./src/setup.h 45
-#define MKSWAP "/sbin/mkswap"
-#define SWAPON "/sbin/swapon"
hunk ./src/setup.h 53
-#define MKSWAP "echo /sbin/mkswap"
-#define SWAPON "echo /sbin/swapon"
}


More information about the Frugalware-darcs mailing list