/[baselayout]/trunk/src/rc.c
Gentoo

Diff of /trunk/src/rc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2793 Revision 2794
988 if (newlevel && strcmp (newlevel, bootlevel) == 0 && 988 if (newlevel && strcmp (newlevel, bootlevel) == 0 &&
989 (strcmp (runlevel, RC_LEVEL_SINGLE) == 0 || 989 (strcmp (runlevel, RC_LEVEL_SINGLE) == 0 ||
990 strcmp (runlevel, RC_LEVEL_SYSINIT) == 0) && 990 strcmp (runlevel, RC_LEVEL_SYSINIT) == 0) &&
991 rc_is_env ("RC_COLDPLUG", "yes")) 991 rc_is_env ("RC_COLDPLUG", "yes"))
992 { 992 {
993#if defined(__DragonFly__) || defined(__FreeBSD__)
993 /* The net interfaces are easy - they're all in net /dev/net :) */ 994 /* The net interfaces are easy - they're all in net /dev/net :) */
994 start_services = rc_ls_dir (NULL, "/dev/net", 0); 995 start_services = rc_ls_dir (NULL, "/dev/net", 0);
995 STRLIST_FOREACH (start_services, service, i) { 996 STRLIST_FOREACH (start_services, service, i) {
996 j = (strlen ("net.") + strlen (service) + 1); 997 j = (strlen ("net.") + strlen (service) + 1);
997 tmp = rc_xmalloc (sizeof (char *) * j); 998 tmp = rc_xmalloc (sizeof (char *) * j);
999 if (rc_service_exists (tmp) && rc_allow_plug (tmp)) 1000 if (rc_service_exists (tmp) && rc_allow_plug (tmp))
1000 rc_mark_service (tmp, rc_service_coldplugged); 1001 rc_mark_service (tmp, rc_service_coldplugged);
1001 CHAR_FREE (tmp); 1002 CHAR_FREE (tmp);
1002 } 1003 }
1003 rc_strlist_free (start_services); 1004 rc_strlist_free (start_services);
1005#endif
1004 1006
1005 /* The mice are a little more tricky. 1007 /* The mice are a little more tricky.
1006 If we coldplug anything else, we'll probably do it here. */ 1008 If we coldplug anything else, we'll probably do it here. */
1007 start_services = rc_ls_dir (NULL, "/dev", 0); 1009 start_services = rc_ls_dir (NULL, "/dev", 0);
1008 STRLIST_FOREACH (start_services, service, i) { 1010 STRLIST_FOREACH (start_services, service, i) {

Legend:
Removed from v.2793  
changed lines
  Added in v.2794

  ViewVC Help
Powered by ViewVC 1.1.20