K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / lib / dpkg / info /
server ip : 172.67.156.115

your ip : 172.71.1.185

H O M E


Filename/var/lib/dpkg/info/ifupdown.preinst
Size1.87 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified04-Apr-2014 10:46
Last accessed06-Jul-2025 22:36
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh
set -e

if [ ! -d /etc/network ]; then
mkdir -p /etc/network
fi

if [ -f /etc/network/interfaces ] && ! grep -q '^[^#]' /etc/network/interfaces
then
f=/etc/network/interfaces
if [ `md5sum < $f | cut -f1 -d ' '` = "4ed352919f69a77ad302ad1593204405" ]; then
if [ `wc -c < /etc/network/interfaces` -eq 2466 ]; then
echo -n "Removing old dummy /etc/network/interfaces: "
rm /etc/network/interfaces
echo "done."
fi
fi
fi

# Transition /etc/init.d/networking between netbase and ifupdown
# NOTE: This can be dropped after 14.04 LTS
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/networking" ] && [ -L "/etc/init.d/networking" ] \
&& [ $(readlink -f "/etc/init.d/networking") = /lib/init/upstart-job ] \
&& [ $(dpkg-query -W -f='${Conffiles}' ifupdown | awk '/\/etc\/init.d\/networking/ { print $2 }') = newconffile ]
then
rm -f "/etc/init.d/networking"
elif [ -e /etc/init.d/networking ] && [ $(md5sum /etc/init.d/networking | cut -f1 -d ' ') = ab67849a014a30c3f6c5566f3a15dbbb ]; then
sed -i -e '/^IFSTATE.*/a STATEDIR="$RUN_DIR/state"' \
-e '/user that they shouldn'"'"'t use this$/,+6d' \
-e '57a\
if ! chown root:netdev "$RUN_DIR" ; then\
log_warning_msg "can'"'"'t chown $RUN_DIR"\
fi' \
-e '/reload)$/a \
if init_is_upstart; then\
exit 1\
fi' \
-e 's#cat /run/network/ifstate#ifquery --state#' \
/etc/init.d/networking
fi
fi

# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/default/ifupdown 0.7~+ ifupdown -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/ifupdown 0.7~+ ifupdown -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/ifupdown-clean 0.7~beta1 ifupdown -- "$@"
# End automatically added section