|
@@ -132,6 +132,7 @@ static void make_device(char *path, int delete)
|
|
|
major = -1;
|
|
|
}
|
|
|
}
|
|
|
+ /* else: for delete, -1 still deletes the node, but < -1 suppresses that */
|
|
|
|
|
|
/* Determine device name, type, major and minor */
|
|
|
device_name = (char*) bb_basename(path);
|
|
@@ -279,7 +280,7 @@ static void make_device(char *path, int delete)
|
|
|
if (aliaslink == '!' && s == a+1) {
|
|
|
val = st;
|
|
|
/* "!": suppress node creation/deletion */
|
|
|
- major = -1;
|
|
|
+ major = -2;
|
|
|
}
|
|
|
else if (aliaslink == '>' || aliaslink == '=') {
|
|
|
val = st;
|
|
@@ -379,7 +380,7 @@ static void make_device(char *path, int delete)
|
|
|
free(command);
|
|
|
}
|
|
|
|
|
|
- if (delete && major >= 0) {
|
|
|
+ if (delete && major >= -1) {
|
|
|
if (ENABLE_FEATURE_MDEV_RENAME && alias) {
|
|
|
if (aliaslink == '>')
|
|
|
unlink(device_name);
|