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 : 104.21.89.46

your ip : 172.70.127.146

H O M E


Filename/var/lib/dpkg/info/mount.preinst
Size1011
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified17-Apr-2014 00:07
Last accessed06-Jul-2025 22:37
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh -e

# Debian mount preinst
# LaMont Jones <[email protected]>

chrooted() {
if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then
# the devicenumber/inode pair of / is the same as that of /sbin/init's
# root, so we're *not* in a chroot and hence return false.
return 1
fi
return 0
}

case "$1" in
install)
;;

upgrade)
version=$2
DISTRO=$(lsb_release -is 2>/dev/null || echo Debian);

if [ Debian = "$DISTRO" ]; then
if [ -f /proc/mounts ] && ! chrooted; then
NFS_IN_USE=$(sed -n '/^[^ ]* [^ ]* nfs /p' /proc/mounts)
else
NFS_IN_USE=""
fi
if [ -n "$NFS_IN_USE" ] && [ ! -x /sbin/mount.nfs ] ; then
cat << EOF
You have NFS mount points currently mounted, and this version of mount
requires that nfs-common be upgraded before NFS mounts will work.

Aborting install.
EOF
exit 1
fi
fi

;;

abort-upgrade)
;;

*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac