Danke für deine Mühe! Das Problem mit dem Returnwert bzw dem start-stop deamon muss ich mir noch anschaun, das hatte ich noch nicht benutzt.
No problem. The code was very understandable and well written. It didn't take long...
The start-stop-daemon program from busybox is not being built per standard. I thought it may however be a good idea. It can do a few things in a standard way we have always done with sh code... I think we should talk about that with the others. What do you think?
Code:
ifconfig $XXX|grep bytes|sed 's/.*RX bytes/N/g;s/ .*TX bytes//g;s/ .*//g'
Code:
ifconfig $XXX | sed /bytes/!d;s/.*RX bytes/N/;s/ .*TX bytes//;s/ .*//g'
Must you replace '.*RX bytes' or ' .*TX bytes' repeatedly in a single line? If you don't, you don't need the 'g' (globally) keyword.
Can you show an example of both the RX and TX lines?