-
Restarting networking after apm induced suspend.
Hi,
I've got a hard disk install of knoppix on my Portege 3480, I'm using a Cardbus Xircom Realport ethernet adapter and it's running great.
I've installed Toshutils to handle the advanced power management stuff and that works too, so that when I close the lid of the laptop it automatically goes to sleep (I assume a "suspend").
The problem I have is that when I open the lid of the laptop my networking doesn't restart.
I've tried creating a script called "networking" in /etc/apm/event.d and making it executable with "chmod 755 networking". Contents of script below:
Code:
#! /bin/sh
if [ "$1" = suspend ]; then
/etc/init.d/networking stop
elif [ "$1" = resume ] && [ "$2" != standby ]; then
/etc/init.d/networking restart
fi
I got this from a combination of 00hwclock in /etc/apm/event.d and hunting around on the net. Problem is, that it doesn't seem to work.
Questions:
1.) How can I check if my script is actually being executed when the laptop resumes?
2.) Assuming it is actually running, is this script correct/suitable?
Thanks !
Similar Threads
-
By jcasp in forum Laptops
Replies: 7
Last Post: 12-14-2004, 11:51 PM
-
By AlBorland in forum Laptops
Replies: 0
Last Post: 09-20-2004, 09:55 AM
-
By probono in forum Ideas
Replies: 4
Last Post: 08-27-2003, 08:24 PM
-
By -=NTL=- in forum Networking
Replies: 5
Last Post: 06-25-2003, 10:11 PM
-
By Robert Michel in forum Ideas
Replies: 0
Last Post: 02-26-2003, 01:21 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter
$27.50

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED
$24.99

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT
$7.99

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver
$5.40

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA
$28.94

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+
$16.99

Arista SFP-10G-SR 10GBASE-SR XVR-10001-20 850nm SFP+ Optical Transceiver
$30.00

SFP QSFP Transceivers Programmer allows to corning and (re)programming sfp code
$108.09