diff --git a/src/freedombone b/src/freedombone index 937748fa..a4cf260d 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1870,9 +1870,17 @@ function mesh_batman_bridge { echo ' start|stop)' >> $batman_script echo ' $1' >> $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 ' 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 ' ;;' >> $batman_script echo 'esac' >> $batman_script diff --git a/src/freedombone-client b/src/freedombone-client index 27a738fc..ffab5a06 100755 --- a/src/freedombone-client +++ b/src/freedombone-client @@ -281,6 +281,11 @@ function mesh_batman { echo ' start|stop)' >> $batman_script echo ' $1' >> $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 ' batctl o' >> $batman_script echo ' ;;' >> $batman_script @@ -289,7 +294,7 @@ function mesh_batman { echo ' ;;' >> $batman_script echo ' *)' >> $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 ' ;;' >> $batman_script echo 'esac' >> $batman_script