There is a command 'netcfg' which is equivalent to 'ifconfig' which list out the interfaces. The output of the 'netcfg' command is something like below
lo up 127.0.0.1/8 0x0000049 23:45:12:11:43:54
dummy0 DOWN 0.0.0.0 0x0000078 11:22:44:55:21:98
p2p0 UP 0.0.0.0 0x0000078 11:22:44:55:21:98
ppp0 UP 192.168.3.4 0x0000054 34:54:88:94:22:FF
I need to run the command 'netcfg' in the shell script and need to check if ppp0 interface is up. Can anybody please give some idea how to do it in shell script in linux?