From bd5b16d8755bc9e5f0dc90162bc4724d319c725e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 17 Aug 2025 15:28:11 -0500 Subject: show drives. remove stupid commit of plugin binary. damnit --- watchForNewDrives.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'watchForNewDrives.go') 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) } } -- cgit v1.2.3