summaryrefslogtreecommitdiffstats
path: root/udev-block-notify.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-21 15:29:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-21 15:29:17 +0200
commit990c8cacb0f422c474c1fc1684404fd1094312f3 (patch)
tree80139357c05170d8699804e3af5e17071453dcb5 /udev-block-notify.c
parent24ca7eea91921511633c41cf41e16b846c4511fe (diff)
downloadudev-block-notify-990c8cacb0f422c474c1fc1684404fd1094312f3.tar.gz
udev-block-notify-990c8cacb0f422c474c1fc1684404fd1094312f3.tar.zst
add icon for multidisk (/dev/md*)
Diffstat (limited to 'udev-block-notify.c')
-rw-r--r--udev-block-notify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c
index 3d66fe8..8098682 100644
--- a/udev-block-notify.c
+++ b/udev-block-notify.c
@@ -25,6 +25,7 @@
#define ICON_DRIVE_HARDDISK_IEEE1394 "drive-harddisk-ieee1394"
#define ICON_DRIVE_HARDDISK_USB "drive-harddisk-usb"
#define ICON_DRIVE_OPTICAL "drive-optical"
+#define ICON_DRIVE_MULTIDISK "drive-multidisk"
#define ICON_LOOP "media-playlist-repeat"
#define ICON_MEDIA_FLASH "media-flash"
#define ICON_MEDIA_FLOPPY "media-floppy"
@@ -235,6 +236,8 @@ int main (int argc, char ** argv) {
icon = ICON_LOOP;
} else if (strncmp(device, "nbd", 3) == 0) {
icon = ICON_NETWORK_SERVER;
+ } else if (strncmp(device, "md", 2) == 0) {
+ icon = ICON_DRIVE_MULTIDISK;
} else if (value != NULL) {
if (strcmp(value, "ata") == 0 ||
strcmp(value, "scsi") == 0) {