Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/util-linux/mdev.c

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

revision 1123 by niro, Wed Aug 18 21:56:57 2010 UTC revision 1124 by niro, Wed Aug 18 21:59:47 2010 UTC
# Line 132  static void make_device(char *path, int Line 132  static void make_device(char *path, int
132   major = -1;   major = -1;
133   }   }
134   }   }
135     /* else: for delete, -1 still deletes the node, but < -1 suppresses that */
136    
137   /* Determine device name, type, major and minor */   /* Determine device name, type, major and minor */
138   device_name = (char*) bb_basename(path);   device_name = (char*) bb_basename(path);
# Line 279  static void make_device(char *path, int Line 280  static void make_device(char *path, int
280   if (aliaslink == '!' && s == a+1) {   if (aliaslink == '!' && s == a+1) {
281   val = st;   val = st;
282   /* "!": suppress node creation/deletion */   /* "!": suppress node creation/deletion */
283   major = -1;   major = -2;
284   }   }
285   else if (aliaslink == '>' || aliaslink == '=') {   else if (aliaslink == '>' || aliaslink == '=') {
286   val = st;   val = st;
# Line 379  static void make_device(char *path, int Line 380  static void make_device(char *path, int
380   free(command);   free(command);
381   }   }
382    
383   if (delete && major >= 0) {   if (delete && major >= -1) {
384   if (ENABLE_FEATURE_MDEV_RENAME && alias) {   if (ENABLE_FEATURE_MDEV_RENAME && alias) {
385   if (aliaslink == '>')   if (aliaslink == '>')
386   unlink(device_name);   unlink(device_name);

Legend:
Removed from v.1123  
changed lines
  Added in v.1124