#!/usr/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/bridge-show-status # # Creation: 2023-01-03 hbfl # Last Update: $Id$ # # Copyright (c) 2014-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /var/install/include/eislib BRIDGE=/usr/sbin/bridge # --------------------------------------------------------------------------- # check status of bridge # --------------------------------------------------------------------------- check_bridge_status() { /usr/bin/grep -q '^bridge ' /proc/modules return ${?} } if check_bridge_status then mecho --info " * Bridge is running ..." echo ${BRIDGE} -d -p -color link show else mecho --info " * Bridge is not running ..." fi echo anykey