source: epoptes/trunk/fuentes/debian/epoptes-client.if-up @ 295

Last change on this file since 295 was 295, checked in by mabarracus, 3 years ago

copy trusty epoptes code

File size: 698 bytes
Line 
1#!/bin/sh
2
3# Don't do anything for the lo interface
4test "$IFACE" != lo || exit 0
5
6# Only run from ifup
7test "$MODE" = start || exit 0
8
9# Only care about inet, inet6 and NetworkManager
10case "$ADDRFAM" in
11    inet|inet6|NetworkManager)
12        ;;
13    *)
14        exit 0
15esac
16
17if [ -x /usr/bin/logger ]; then
18    logger=logger
19else
20    logger=true
21fi
22
23$logger -t epoptes -p syslog.info "Running epoptes-client, IFACE=$IFACE, pid=$$"
24
25if [ -x /sbin/ethtool ] && [ -f /etc/default/epoptes-client ]; then
26    . /etc/default/epoptes-client
27    if [ -n "$WOL" ]; then
28        # $WOL is unquoted in case someone wants to add sopass
29        ethtool -s "$IFACE" wol $WOL
30    fi
31fi
32
33/usr/sbin/epoptes-client &
Note: See TracBrowser for help on using the repository browser.