File: wrapper

package info (click to toggle)
laptop-netconf 0.9.6.6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 164 kB
  • ctags: 49
  • sloc: ansic: 460; sh: 90; makefile: 69
file content (16 lines) | stat: -rwxr-xr-x 374 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

# Check configuration file
if [ -f /etc/default/laptop-netconf ]; then
  . /etc/default/laptop-netconf

  # If active, spawn the real laptop-netconf
  if [ "$ACTIVE" = "yes" ]; then
    exec "/usr/lib/laptop-netconf/laptop-netconf" "$@"
    exit 1
  fi
fi

# Print out error message
echo "laptop-netconf has not been activated.  See laptop-netconf(8)."
exit 1