1
0
Fork 0

kinda nothing new...

This commit is contained in:
fanir 2013-11-24 22:13:43 +01:00
parent 8844660add
commit d1e405ba67
2 changed files with 2 additions and 7 deletions

BIN
usblocker

Binary file not shown.

View file

@ -116,11 +116,6 @@ func WatcherLocked(lpid *os.Process) {
if err != nil {
log.Fatal("Error while reading the device file:", err)
}
fmt.Println(passphrase)
fmt.Println()
fmt.Println(string(passtest))
if length == 1024 && string(passtest) == passphrase {
// And finally: UNLOCK!
log.Println("Unlocked")
@ -147,8 +142,8 @@ func main() {
}
switch os.Args[1] {
case "run":
case "daemon":
log.Fatal("Not yet implemented. Probably won't be implemented anyway, go doesn't seem to support forking...")
//case "daemon":
// log.Fatal("Not yet implemented. Probably won't be implemented anyway, go doesn't seem to support forking...")
case "create":
log.Fatal("Not yet implemented.")
default: