/usr/share/tcos/hooks-addons/65web_browser is in initramfs-tools-tcos 0.89.93ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | # hooks addon embedded web browser
# need links2 or dillo
# dillo copy some system fonts (25 Mb)
if [ "${TCOS_WEB_BROWSER}" = "dillo" ]; then
if [ ! -d /usr/share/doc/dillo ]; then
echo "WARNING"
echo ""
echo "Please install dillo package or disable WEB BROWSER support."
echo " => apt-get install dillo"
echo ""
else
stat_before
cpifexists /usr/bin/dillo /usr/bin/
cpifexists /usr/bin/dillocfg /usr/bin/
cpifexists /usr/bin/dpid /usr/bin/
#cpifexists /usr/bin/dpidc /usr/bin/ # FIXME this need perl :(
cpifexists /etc/dillorc /etc/
cpifexists /etc/dpidrc /etc/
mkdir -p $DESTDIR/usr/lib/dillo/
copydir /usr/lib/dillo/dpi /usr/lib/dillo/
mkdir -p $DESTDIR/etc/fonts/
cpifexists /etc/fonts/fonts.conf /etc/fonts/
copydir /usr/share/fonts /usr/share/
rm -rf $DESTDIR/usr/share/fonts/X11/
stat_after "Dillo, web browser"
fi
fi
if [ "${TCOS_WEB_BROWSER}" = "links2" ]; then
if [ ! -d /usr/share/doc/links2 ]; then
echo "WARNING"
echo ""
echo "Please install links2 package or disable WEB BROWSER support."
echo " => apt-get install links2"
echo ""
else
stat_before
cpifexists /usr/bin/links2 /usr/bin/
cpifexists /usr/bin/xlinks2 /usr/bin/
stat_after "Links2, web browser"
fi
fi
if [ ! $TCOS_WEB_BROWSER ]; then
_verbose "(65web_browser) TCOS_WEB_BROWSER disabled"
fi
|