ALT Linux Bugzilla
– Attachment 2171 Details for
Bug 12659
create-tuntap does not create tuntap interface at boot
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch
etcnet-create-tuntap.diff (text/plain), 973 bytes, created by
Sergey Bolshakov
on 2007-09-01 17:38:04 MSD
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Sergey Bolshakov
Created:
2007-09-01 17:38:04 MSD
Size:
973 bytes
patch
obsolete
>diff --git a/etc/net/scripts/create-tuntap b/etc/net/scripts/create-tuntap >index 97f461f..7619471 100755 >--- a/etc/net/scripts/create-tuntap >+++ b/etc/net/scripts/create-tuntap >@@ -3,20 +3,27 @@ > pickup_defaults > pickup_options > >-if [ ! -c /dev/net/tun ]; then >- $MODPROBE tun || { >- print_error "tuntap kernel module not found" >- exit 1 >- } >- [ -c /dev/net/tun ] || { >- print_error "tuntap control node does not exist" >- exit 1 >- } >-fi >+ensure_tuntap_node() { >+ local i=3 >+ >+ [ -c /dev/net/tun ] && return 0 >+ $MODPROBE tun || return 1 >+ while [ $i -gt 0 ] ; do >+ [ -c /dev/net/tun ] && break >+ i=$(($i - 1)) >+ usleep 30000 >+ done >+ [ -c /dev/net/tun ] >+} > > [ -x "${TUNCTL:=$DEFAULT_TUNCTL}" ] || { > print_error "$TUNCTL does not exist or is not executable. Try installing tunctl RPM." > exit 1 > } > >+ensure_tuntap_node || { >+ print_error "tuntap control node does not exist" >+ exit 1 >+} >+ > $TUNCTL -t "$NAME" ${TUNTAP_USER:+-u $TUNTAP_USER} > /dev/null
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12659
: 2171