Add root unavailable to clean

This commit is contained in:
Mygod
2018-01-22 00:45:55 -08:00
parent d33bf1e8cc
commit 913e9bd863
6 changed files with 9 additions and 9 deletions

View File

@@ -79,11 +79,11 @@ class Routing(private val upstream: String, val downstream: String, ownerAddress
fun start(): Boolean {
if (started) return true
started = true
return noisySu(startScript)
return noisySu(startScript) == true
}
fun stop(): Boolean {
if (!started) return true
started = false
return noisySu(stopScript)
return noisySu(stopScript) == true
}
}