Advertisement
Guest User

tools.js

a guest
Jan 31st, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. var make_system_action = function(name) {
  2. return function() {
  3. var subprocess = require("subprocess");
  4. subprocess.check_call("/opt/bt-toggle/bt-toggle.sh", [name]);
  5. };
  6. };
  7.  
  8. exports.bluetooth_toggle = make_system_action("toggle");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement