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

package info (click to toggle)
uml-utilities 20060323-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 660 kB
  • ctags: 413
  • sloc: ansic: 3,231; perl: 930; makefile: 224; sh: 215; 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