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

package info (click to toggle)
uml-utilities 20040406-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 704 kB
  • ctags: 398
  • sloc: ansic: 3,169; perl: 929; makefile: 203; exp: 129; sh: 92
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