summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@xerxes.r>2019-10-14 15:06:16 +0200
committerlassulus <lass@xerxes.r>2019-10-14 15:06:16 +0200
commita95c4490fca75b0df9692295399a14633e66b058 (patch)
tree9eecb29f7ee5d5ca16afe3a44466feb889cc488e
parent51b56b7996d1b5256f08adedee91b3f5982664b6 (diff)
l xerxes.r: add usb tether aliases
-rw-r--r--lass/1systems/xerxes/config.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lass/1systems/xerxes/config.nix b/lass/1systems/xerxes/config.nix
index 2d25bc88a..589c8c494 100644
--- a/lass/1systems/xerxes/config.nix
+++ b/lass/1systems/xerxes/config.nix
@@ -28,6 +28,12 @@
export SYSTEM="$1"
$(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy)
'';
+ usb-tether-on = pkgs.writeDash "usb-tether-on" ''
+ adb shell su -c service call connectivity 33 i32 1 s16 text
+ '';
+ usb-tether-off = pkgs.writeDash "usb-tether-off" ''
+ adb shell su -c service call connectivity 33 i32 0 s16 text
+ '';
};
services.xserver = {