Status command

This commit is contained in:
Bob Mottram 2015-08-07 23:35:45 +01:00
parent 90eb44d9cb
commit fd3f7e0d89
1 changed files with 4 additions and 1 deletions

View File

@ -243,9 +243,12 @@ function mesh_batman {
echo ' start|stop)' >> $batman_script
echo ' $1' >> $batman_script
echo ' ;;' >> $batman_script
echo ' status)' >> $batman_script
echo ' batctl o' >> $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|status}"' >> $batman_script
echo ' exit 2' >> $batman_script
echo ' ;;' >> $batman_script
echo 'esac' >> $batman_script