diff options
| author | Jeff Carr <[email protected]> | 2025-08-17 15:28:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-17 22:57:06 -0500 |
| commit | bd5b16d8755bc9e5f0dc90162bc4724d319c725e (patch) | |
| tree | 4b7f532675d29493f78b8ab41c0bb925158ee768 /watchForNewDrives.go | |
| parent | edb3e23311b9cd667898e625b07f5dbeb43e30e3 (diff) | |
show drives. remove stupid commit of plugin binary. damnit
Diffstat (limited to 'watchForNewDrives.go')
| -rw-r--r-- | watchForNewDrives.go | 5 |
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) } } |
