From 639024a04a34dea5e32812ce7c1e9e6f0b5f7e5c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 12 Jul 2007 14:13:30 +0000 Subject: Document how to detect if docked or not in example preup, #167742 --- conf.d.Linux/net.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf.d.Linux/net.example b/conf.d.Linux/net.example index 7725f489..927a5c23 100644 --- a/conf.d.Linux/net.example +++ b/conf.d.Linux/net.example @@ -958,6 +958,12 @@ # return 1 # fi # +# # Test to see if we're docked or not and configure like so +# # config_docked="dhcp" +# if grep -q "1" /sys/devices/platform/dock.0/docked ; then +# einfo "${IFACE} is docked - configuring" +# _configure_variables "docked" +# fi # # # Remember to return 0 on success # return 0 -- cgit v1.2.3