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.69.130.125 H O M E |
Filename | /var/lib/dpkg/info/ntfs-3g.postinst |
Size | 1.71 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 18-Dec-2013 23:36 |
Last accessed | 27-Apr-2025 09:56 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
_CONFFILE="/etc/default/ntfs-3g"
case "${1}" in
configure)
db_get ntfs-3g/setuid-root
NTFS3G_SETUID_ROOT="${RET}" # boolean
db_get ntfs-3g/initramfs
NTFS3G_INITRAMFS="${RET}" # boolean
db_stop
if [ ! -e "${_CONFFILE}" ]
then
cat > "${_CONFFILE}" << EOF
# /etc/default/ntfs-3g
NTFS3G_INITRAMFS="${NTFS3G_INITRAMFS}"
EOF
fi
cp -a -f "${_CONFFILE}" "${_CONFFILE}.tmp"
# If the admin deleted or commented some variables but then set
# them via debconf, (re-)add them to the config file.
test -z "${NTFS3G_INITRAMFS}" || \
grep -Eq '^ *NTFS3G_INITRAMFS=' "${_CONFFILE}" || \
echo "NTFS3G_INITRAMFS=" >> "${_CONFFILE}"
OLD_NTFS3G_INITRAMFS="$(awk -F= '/^NTFS3G_INITRAMFS=/ { print $2 }' /etc/default/ntfs-3g | sed -e 's|"||g' -e "s|'||g")"
sed -e "s|^ *NTFS3G_INITRAMFS=.*|NTFS3G_INITRAMFS=\"${NTFS3G_INITRAMFS}\"|" \
< "${_CONFFILE}" > "${_CONFFILE}.tmp"
mv -f "${_CONFFILE}.tmp" "${_CONFFILE}"
case "${NTFS3G_SETUID_ROOT}" in
true)
_MODE="4755"
;;
false)
_MODE="0755"
;;
esac
if [ -x /usr/sbin/dpkg-statoverride ] && \
! /usr/sbin/dpkg-statoverride --list /bin/ntfs-3g >/dev/null
then
chown root:root /bin/ntfs-3g
chmod ${_MODE} /bin/ntfs-3g
fi
if [ "${NTFS3G_INITRAMFS}" = "true" ] || \
[ "${OLD_NTFS3G_INITRAMFS}" != "${NTFS3G_INITRAMFS}" ]
then
if [ -x /usr/sbin/update-initramfs ]
then
update-initramfs -u
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
exit 0
set -e
. /usr/share/debconf/confmodule
_CONFFILE="/etc/default/ntfs-3g"
case "${1}" in
configure)
db_get ntfs-3g/setuid-root
NTFS3G_SETUID_ROOT="${RET}" # boolean
db_get ntfs-3g/initramfs
NTFS3G_INITRAMFS="${RET}" # boolean
db_stop
if [ ! -e "${_CONFFILE}" ]
then
cat > "${_CONFFILE}" << EOF
# /etc/default/ntfs-3g
NTFS3G_INITRAMFS="${NTFS3G_INITRAMFS}"
EOF
fi
cp -a -f "${_CONFFILE}" "${_CONFFILE}.tmp"
# If the admin deleted or commented some variables but then set
# them via debconf, (re-)add them to the config file.
test -z "${NTFS3G_INITRAMFS}" || \
grep -Eq '^ *NTFS3G_INITRAMFS=' "${_CONFFILE}" || \
echo "NTFS3G_INITRAMFS=" >> "${_CONFFILE}"
OLD_NTFS3G_INITRAMFS="$(awk -F= '/^NTFS3G_INITRAMFS=/ { print $2 }' /etc/default/ntfs-3g | sed -e 's|"||g' -e "s|'||g")"
sed -e "s|^ *NTFS3G_INITRAMFS=.*|NTFS3G_INITRAMFS=\"${NTFS3G_INITRAMFS}\"|" \
< "${_CONFFILE}" > "${_CONFFILE}.tmp"
mv -f "${_CONFFILE}.tmp" "${_CONFFILE}"
case "${NTFS3G_SETUID_ROOT}" in
true)
_MODE="4755"
;;
false)
_MODE="0755"
;;
esac
if [ -x /usr/sbin/dpkg-statoverride ] && \
! /usr/sbin/dpkg-statoverride --list /bin/ntfs-3g >/dev/null
then
chown root:root /bin/ntfs-3g
chmod ${_MODE} /bin/ntfs-3g
fi
if [ "${NTFS3G_INITRAMFS}" = "true" ] || \
[ "${OLD_NTFS3G_INITRAMFS}" != "${NTFS3G_INITRAMFS}" ]
then
if [ -x /usr/sbin/update-initramfs ]
then
update-initramfs -u
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
exit 0