(10-22-2020, 02:51 PM)noob444 Wrote: Hi all!
I've been using Mobian on a Braveheart for a while now and I'm really impressed with the project so far.
My plan right now is to write some simple bash scripts for various purposes. I'm sure it's documented somewhere but I figured I ask here first. I would be very happy if some of you Linux experts out there could help me out.
How do I toggle the following functionalities (devices) on or off only using the Kings cross terminal:
1) Wifi?
2) Bluetooth?
3) Modem?
4) LTE?
Code:
sudo ip link set NetworkCardName down
to set device down (replacing NetworkCardName with name of your device)
Code:
sudo ip link set NetworkCardName up
to bring up.
The ip command is very powerful. You should take a look at the manual pages (man ip) to get a better idea of all of it's capabilities.
Here is a good guide https://upload.wikimedia.org/wikipedia/c...ipting.pdf
- RTP
"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki
[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]
Linux Device Privacy / Security Playlist
"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki
[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]
Linux Device Privacy / Security Playlist