Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var make_system_action = function(name) {
- return function() {
- var subprocess = require("subprocess");
- subprocess.check_call("/opt/bt-toggle/bt-toggle.sh", [name]);
- };
- };
- exports.bluetooth_toggle = make_system_action("toggle");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement