File: uml-utilities.if-pre-up.d

package info (click to toggle)
uml-utilities 20070815-1.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 740 kB
  • sloc: ansic: 3,390; perl: 1,277; makefile: 253; sh: 175; exp: 129
file content (12 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

test -x /usr/sbin/tunctl || exit 0
test -n "${IF_TUNCTL_USER}" || exit 0

/usr/sbin/tunctl -u "${IF_TUNCTL_USER}" -t "${IFACE}"

#
# why the hell does this need to be done?
#
chown root:uml-net /dev/net/tun
chmod 660 /dev/net/tun