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); |
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; |
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); |