summaryrefslogtreecommitdiff
path: root/watchForNewDrives.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-17 15:28:11 -0500
committerJeff Carr <[email protected]>2025-08-17 22:57:06 -0500
commitbd5b16d8755bc9e5f0dc90162bc4724d319c725e (patch)
tree4b7f532675d29493f78b8ab41c0bb925158ee768 /watchForNewDrives.go
parentedb3e23311b9cd667898e625b07f5dbeb43e30e3 (diff)
show drives. remove stupid commit of plugin binary. damnit
Diffstat (limited to 'watchForNewDrives.go')
-rw-r--r--watchForNewDrives.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/watchForNewDrives.go b/watchForNewDrives.go
index 78b2954..3f50707 100644
--- a/watchForNewDrives.go
+++ b/watchForNewDrives.go
@@ -1,8 +1,9 @@
package main
import (
- "log"
"syscall"
+
+ "go.wit.com/log"
)
/*
@@ -43,7 +44,9 @@ func listenForBlockEvents() {
msg := parseUevent(buf[:n])
if msg["SUBSYSTEM"] == "block" && msg["ACTION"] == "add" {
log.Printf("New block device added: %s\n", msg["DEVNAME"])
+ me.dd.AddText("/dev/" + msg["DEVNAME"] + " new")
}
+ log.Printf("New syscall.NETLINK_KOBJECT_UEVENT: %v\n", msg)
}
}