2:01 hackphil@debian /etc/laptop-netconf% cat opts # laptop-netconf configuration file # Uncomment the following line if you want debugging information to be # echoed to the terminal. The default is no debugging. #debug # Specify the ethernet device to perform detection on. This defaults to # eth0 if not specified. #device eth0 # Configuration for individual networks starts here. # # Network detection is performed by sending arp packets out onto the local # network and listening for replies. The network is considered detected # when an arp packet is received, which contains a matching hardware # address to that in the configuration line. The script corresponding to # the profile is then run. # # Format: # self x.x.x.x probe x.x.x.x hwaddress x:x:x:x:x:x profile xxxx # # self x.x.x.x ... # Specifies the local ip address of this machine if it were on the local # network. (Note: this keyword used to be 'host' and 'host' can still # be used; however, please migrate to the new keyword.) # # ... probe x.x.x.x ... # Specifies the ip address of the machine to request hardware address # information for. # # ... hwaddress x:x:x:x:x:x ... # Specifies the hardware address of the machine being probed above. # # ... profile xxxx # Specifies the /etc/laptop-netconf/xxxx script to be run if a matching # arp reply is received. # EXAMPLE CONFIGURATION # ## LOCAL OFFICE NETWORK -- internal.gyre.co.uk # ## Look for one of the servers on the local network, which has an ## IP address of 192.168.0.1 and hardware address of 00:C0:DF:51:1B:E3. # #self 192.168.0.11 probe 192.168.0.1 hwaddress 00:C0:DF:51:1B:E3 profile office # ## HOME NETWORK -- internal.undue.org # ## Look for the router on the local network, which has an IP address of ## 10.0.0.1 and hardware address of 00:01:02:15:10:B0. # #self 10.0.0.2 probe 10.0.0.1 hwaddress 00:01:02:15:10:B0 profile home # ## STANDALONE -- standalone configuration # ## If no network is found, /etc/laptop-netconf/default is run.