#!/mod/bin/jimsh set services [split [exec /mod/bin/service mlist]] proc button {state service action} { puts -nonewline "" puts -nonewline "" puts "" } proc control {s a} { return "" } foreach service $services { set data [split $service ":"] set name [lindex $data 0] set installed [lindex $data 1] set auto [lindex $data 2] set running [lindex $data 3] puts "$name" if (!$installed) { puts "Not installed" continue } puts "" if ($auto) { button on $name auto } else { button off $name auto } puts "" puts "" if ($running) { button on $name toggle } else { button off $name toggle } puts "" puts "" }