batman restart subcommand
This commit is contained in:
parent
87c92d4d10
commit
91472ca2ae
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue