summaryrefslogtreecommitdiff
path: root/run_daemons.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_daemons.sh')
-rwxr-xr-xrun_daemons.sh34
1 files changed, 15 insertions, 19 deletions
diff --git a/run_daemons.sh b/run_daemons.sh
index 30da552d..c8ed4996 100755
--- a/run_daemons.sh
+++ b/run_daemons.sh
@@ -1,33 +1,29 @@
#!/bin/bash
# Start all daemons
-nic=$1
-
if [ "$1" == "-h" ]; then
echo "Usage: $0 <network interface>"
echo " eg: $0 eth1"
+ echo ""
+ echo "If you are using IGB, call \"sudo ./run_igb.sh\" before running this script."
+ echo ""
exit
fi
if [ "$1" == "" ]; then
- nic="eth1" #edit as required
- echo "Network interface not specified, assuming: $nic"
+ echo "Please enter network interface name as parameter. For example:"
+ echo "sudo $0 eth1"
+ echo ""
+ echo "If you are using IGB, call \"sudo ./run_igb.sh\" before running this script."
+ echo ""
+ exit -1
fi
+nic=$1
echo "Starting daemons on "$nic
-#use false for silence
-if true; then
- sudo rmmod igb
- sudo insmod kmod/igb/igb_avb.ko
- sudo groupadd ptp
-else
- sudo rmmod igb > /dev/null 2>&1
- sudo insmod kmod/igb/igb_avb.ko > /dev/null 2>&1
- sudo groupadd ptp > /dev/null 2>&1
-fi
-
-sudo daemons/gptp/linux/build/obj/daemon_cl $nic &
-sudo daemons/mrpd/mrpd -mvs -i $nic &
-sudo daemons/maap/linux/maap_daemon -i $nic &
-
+groupadd ptp > /dev/null 2>&1
+daemons/gptp/linux/build/obj/daemon_cl $nic &
+daemons/mrpd/mrpd -mvs -i $nic &
+daemons/maap/linux/build/maap_daemon -i $nic -d /dev/null
+daemons/shaper/shaper_daemon -d &