#!/usr/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/dsl-show-status # # Creation: 2025-11-12 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. #---------------------------------------------------------------------------- # include eislib . /var/install/include/eislib # --------------------------------------------------------------------------- # check status of bonding # --------------------------------------------------------------------------- check_dsl_status() { /usr/bin/grep -q '^pppoe ' /proc/modules return ${?} } # --------------------------------------------------------------------------- # show # --------------------------------------------------------------------------- show() { mecho --info 'Status service ...' if check_dsl_status then mecho --std ' * Dsl is running ...' echo /usr/bin/nmcli con else mecho --warn ' * Dsl is not running ...' fi echo anykey } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- main() { show } # --------------------------------------------------------------------------- # exec main # --------------------------------------------------------------------------- main "${@}" # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------