Erste Teile der neuen Netzwerkscripte.
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / config.c
index d63daa9..ede0a70 100644 (file)
@@ -15,72 +15,6 @@ extern char *mylog;
 
 extern char **ctr;
 
-extern int raid_disk;
-
-/* called to write out all config files using the keyvalue interface. */
-int write_disk_configs(struct devparams *dp)
-{
-       char devnode[STRING_SIZE];
-       
-       /* dev node links. */
-       snprintf(devnode, STRING_SIZE, "%s", dp->devnode);
-       if (symlink(devnode, "/harddisk/dev/harddisk"))
-       {
-               errorbox(ctr[TR_UNABLE_TO_MAKE_SYMLINK_DEV_HARDDISK]);
-               return 0;
-       }
-       if (raid_disk)
-               snprintf(devnode, STRING_SIZE, "%sp1", dp->devnode);
-       else
-               snprintf(devnode, STRING_SIZE, "%s1", dp->devnode);
-       if (symlink(devnode, "/harddisk/dev/harddisk1"))
-       {
-               errorbox(ctr[TR_UNABLE_TO_MAKE_SYMLINK_DEV_HARDDISK1]);
-               return 0;
-       }
-       if (raid_disk)
-               snprintf(devnode, STRING_SIZE, "%sp2", dp->devnode);
-       else
-               snprintf(devnode, STRING_SIZE, "%s2", dp->devnode);
-       if (symlink(devnode, "/harddisk/dev/harddisk2"))
-       {
-               errorbox(ctr[TR_UNABLE_TO_MAKE_SYMLINK_DEV_HARDDISK2]);
-               return 0;
-       }
-       if (raid_disk)
-               snprintf(devnode, STRING_SIZE, "%sp3", dp->devnode);
-       else
-               snprintf(devnode, STRING_SIZE, "%s3", dp->devnode);
-       if (symlink(devnode, "/harddisk/dev/harddisk3"))
-       {
-               errorbox(ctr[TR_UNABLE_TO_MAKE_SYMLINK_DEV_HARDDISK3]);
-               return 0;
-       }
-       if (raid_disk)
-               snprintf(devnode, STRING_SIZE, "%sp4", dp->devnode);
-       else
-               snprintf(devnode, STRING_SIZE, "%s4", dp->devnode);
-       if (symlink(devnode, "/harddisk/dev/harddisk4"))
-       {
-               errorbox(ctr[TR_UNABLE_TO_MAKE_SYMLINK_DEV_HARDDISK4]);
-               return 0;
-       }
-
-       /* Add /dev/root symlink linking to the root filesystem to 
-        * keep updfstab happy */
-       if (raid_disk)
-               snprintf(devnode, STRING_SIZE, "%sp4", dp->devnode);
-       else
-               snprintf(devnode, STRING_SIZE, "%s4", dp->devnode);
-       if (symlink(devnode, "/harddisk/dev/root"))
-       {
-               errorbox(ctr[TR_UNABLE_TO_MAKE_SYMLINK_DEV_ROOT]);
-               return 0;
-       }
-
-       return 1;
-}
-
 int write_lang_configs( char *lang)
 {
        struct keyvalue *kv = initkeyvalues();