Mailinglist Archive: opensuse (1540 mails)
| < Previous | Next > |
Re: [opensuse] Script to check interface & restart network service
- From: "Wong" <wongsuse@xxxxxxxxxx>
- Date: Thu, 11 Feb 2010 17:35:01 +0800
- Message-id: <DF4D1534F1024B409714B3BE68D5BF68@pc>
On 11/02/10 04:03, Wong wrote:
Thanks for your advise & useful script.That's because it should be INT TERM EXIT , not SIGINT SIGTERM EXIT.
I tried to run it foreground and get this message:
/usr/local/sbin/dslcheck: line 9: trap: cleanup: invalid signal
specification
Also only one "trap cleanup" -- it seems to be duplicated for some reason.
Basically it should look like this
trap cleanup INT TERM EXIT
Thanks Tejas,
I will try the update
Thx & Rgds,
Wong
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |