Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
etc/init.d/ifupdown 0000666 00000004726 15077126552 0010311 0 ustar 00 #!/bin/sh -e
### BEGIN INIT INFO
# Provides: ifupdown
# Required-Start: ifupdown-clean
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Prepare the system for taking up interfaces.
### END INIT INFO
[ -x /sbin/ifup ] || exit 0
[ -x /sbin/ifdown ] || exit 0
. /lib/lsb/init-functions
MYNAME="${0##*/}"
report() { echo "${MYNAME}: $*" ; }
report_err() { log_failure_msg "$*" ; }
RUN_DIR=/etc/network/run
[ -r /etc/default/ifupdown ] && . /etc/default/ifupdown
# Note: The state file location is hardcoded in ifup|ifdown
IFSTATE=/etc/network/run/ifstate
myreadlink () {
dest="${1%/}"
extras=""
while [ "$dest" != "" ]; do
if [ -d "$dest" ]; then
cd "$dest"
dest=$(/bin/pwd)
break
fi
if [ -L "$dest" ]; then
d2=$(readlink "$dest")
if [ "${d2#/}" = "$d2" ]; then
dest="${dest%/*}/$d2"
else
dest="$d2"
fi
fi
while [ ! -e "$dest" ]; do
extras="${dest##*/}/$extras"
if [ "${extras%%/*}" = ".." ]; then return 1; fi
destx="${dest%/*}"
if [ "$destx" = "$dest" ]; then destx=""; fi
dest="$destx"
done
done
dest="$dest/$extras"
echo "${dest%/}"
}
case "$1" in
start|restart)
if [ "$2" ]; then
report_err "Arguments to '$1' command not accepted"
exit 3
fi
log_begin_msg "Setting up networking..."
# if /etc/network/run is a symlink to a directory that doesn't exist,
# create it.
if [ -L "$RUN_DIR" ] && [ ! -d "$RUN_DIR" ] ; then
runmkdir="$(myreadlink "$RUN_DIR")"
if [ ! "$runmkdir" ] ; then
report_err "Cannot create target of /etc/network/run"
log_end_msg 1
exit 1
fi
if ! mkdir -p "$runmkdir"; then
report_err "Failure creating directory $runmkdir"
log_end_msg 1
exit 1
fi
fi
# Create the state file
# Doing this also signals that ifupdown is available for use
if [ ! -r "$IFSTATE" ]; then
if ! : > "$IFSTATE" ; then
report_err "Failure initializing $IFSTATE"
log_end_msg 1
exit 1
fi
fi
log_end_msg 0
exit 0
;;
stop)
if [ "$2" ]; then
report_err "Arguments to '$1' command not accepted"
exit 3
fi
if [ -x /etc/init.d/ifupdown-clean ]; then
/etc/init.d/ifupdown-clean start
fi
;;
force-reload)
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
exit 3
;;
esac
exit 0
etc/default/ifupdown 0000666 00000000245 15077202453 0010533 0 ustar 00 # Set to "yes" to turn on debugging messages in scripts
# DEBUG=""
# Time to wait for ifupdown to become ready at boot
# (Currently not used)
# IFUPDOWN_TIMEOUT=60
upgrade-from-0.5.x.pl 0000666 00000002062 15077225050 0010246 0 ustar 00 #!/usr/bin/perl -w
use strict;
my %doneifaces = ();
my @orig = (); # original interfaces file
my $line;
while($line = ) {
if ($line =~ m/^\s*#/) {
push @orig, $line;
next;
}
my $tmp;
while ($line =~ m/\\\n$/ and $tmp = <>) {
$line .= $tmp;
}
push @orig, $line;
}
my $out = "";
my $block = "";
my $auto = "";
for my $x (@orig) {
my $y = $x;
$y =~ s/^\s*//s;
$y =~ s/\\\n//sg;
$y =~ s/\s*$//s;
if ($y =~ m/^scheme\b/) {
print STDERR "Schemes cannot be automatically converted\n";
exit(1);
}
if ($y =~ m/^auto\b/) {
print STDERR "File seems to already be converted\n";
exit(1);
}
if ($y =~ m/^iface\b/s) {
$out .= $auto . $block;
$block = $x;
if ($y =~ m/^iface\s+(\S+)/s && ! $doneifaces{$1}++ ) {
$auto = "# automatically added when upgrading\n";
$auto .= "auto $1\n";
} else {
$auto = "";
}
next;
}
if ($y =~ m/^noauto/) {
$auto = "";
my $spaces = $x;
$spaces =~ s/\S.*$//s;
$block .= $spaces . "# noauto (removed on upgrade)\n";
next;
}
$block .= $x;
}
$out .= $auto . $block;
print $out;