i have a bash script for automating airodump and it needs to run with root privs at boot.

I tried putting my script in /etc/init.d/ and creating a symlink to /etc/rc1.d and also tried symlink to /etc/rc2.d/ but each time it only runs the first part of the script and nothing else.

Here is the script below:

Code:
#!/bin/bash

ifconfig wlan0 down
sleep 5
exec airmon-ng start wlan0
sleep 5
timeout 2h airodump-ng --write /dumps/log1 -c 1 mon0
sleep 2
timeout 2h airodump-ng --write /dumps/log6 -c 6 mon0
sleep 2
timeout 2h airodump-ng --write /dumps/log11 -c 11 mon0

exit 0