batman restart subcommand

This commit is contained in:
Bob Mottram 2015-08-08 17:02:27 +01:00
parent 87c92d4d10
commit 91472ca2ae
2 changed files with 15 additions and 2 deletions

View File

@ -1870,9 +1870,17 @@ function mesh_batman_bridge {
echo ' start|stop)' >> $batman_script echo ' start|stop)' >> $batman_script
echo ' $1' >> $batman_script echo ' $1' >> $batman_script
echo ' ;;' >> $batman_script echo ' ;;' >> $batman_script
echo ' restart)' >> $batman_script
echo ' stop' >> $batman_script
echo ' sleep 10' >> $batman_script
echo ' start' >> $batman_script
echo ' ;;' >> $batman_script
echo ' ls|list)' >> $batman_script
echo ' avahi-browse --all' >> $batman_script
echo ' ;;' >> $batman_script
echo ' *)' >> $batman_script echo ' *)' >> $batman_script
echo ' echo "error: invalid parameter $1"' >> $batman_script echo ' echo "error: invalid parameter $1"' >> $batman_script
echo ' echo "usage: $0 {start|stop}"' >> $batman_script echo ' echo "usage: $0 {start|stop|restart|list|ls}"' >> $batman_script
echo ' exit 2' >> $batman_script echo ' exit 2' >> $batman_script
echo ' ;;' >> $batman_script echo ' ;;' >> $batman_script
echo 'esac' >> $batman_script echo 'esac' >> $batman_script

View File

@ -281,6 +281,11 @@ function mesh_batman {
echo ' start|stop)' >> $batman_script echo ' start|stop)' >> $batman_script
echo ' $1' >> $batman_script echo ' $1' >> $batman_script
echo ' ;;' >> $batman_script echo ' ;;' >> $batman_script
echo ' restart)' >> $batman_script
echo ' stop' >> $batman_script
echo ' sleep 10' >> $batman_script
echo ' start' >> $batman_script
echo ' ;;' >> $batman_script
echo ' status)' >> $batman_script echo ' status)' >> $batman_script
echo ' batctl o' >> $batman_script echo ' batctl o' >> $batman_script
echo ' ;;' >> $batman_script echo ' ;;' >> $batman_script
@ -289,7 +294,7 @@ function mesh_batman {
echo ' ;;' >> $batman_script echo ' ;;' >> $batman_script
echo ' *)' >> $batman_script echo ' *)' >> $batman_script
echo ' echo "error: invalid parameter $1"' >> $batman_script echo ' echo "error: invalid parameter $1"' >> $batman_script
echo ' echo "usage: $0 {start|stop|status|ls|list}"' >> $batman_script echo ' echo "usage: $0 {start|stop|restart|status|ls|list}"' >> $batman_script
echo ' exit 2' >> $batman_script echo ' exit 2' >> $batman_script
echo ' ;;' >> $batman_script echo ' ;;' >> $batman_script
echo 'esac' >> $batman_script echo 'esac' >> $batman_script