kinda nothing new...
This commit is contained in:
parent
8844660add
commit
d1e405ba67
2 changed files with 2 additions and 7 deletions
BIN
usblocker
BIN
usblocker
Binary file not shown.
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue