RA is an array.
${RA[2]} is the third element of this array.
Run this example:
#!/bin/bash
ME="aaa"
RA=( bbb ccc ddd )
for person in $ME $3 Pat ${RA[2]} Sue; do
echo $person
done
Hello.
How to redirect the HCI interface from Bluetooth to USB (I use usb_gadget)?
I have an SBC on which there is a Bluetooth module (available as /dev/ttyS1).
I would like to be able to control it (using the HCI interface) from another device via the USB of this SBC.
I need to redirect...
Hello.
You have two commands:
First: sudo ifconfig wlan0mon up 192.168.1.1 netmask 255.255.255.0
Second: route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
You need to add 'sudo' to second command.
So, you need to executed:
sudo route add -net 192.168.1.0 netmask 255.255.255.0...