/usr/share/tcos/hooks-addons/49xfbdev 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | if [ -n "$TCOS_XFBDEV" ] && [ -x /usr/bin/Xfbdev ]; then
stat_before
_echo " * Using Xfbdev as Xserver"
cpifexists /usr/bin/Xfbdev /usr/bin/
cat << EOF > $DESTDIR/usr/bin/Xorg
#!/bin/sh
echo "ARGS=\$@" > /tmp/xorg.args
if [ "\$1" = "-version" ]; then
echo "7.1"
exit
fi
/usr/bin/Xfbdev \$@ -screen 1024x768x16 -mouse mouse,2 -3button -keybd keyboard
# example
# Xfbdev vt7 -query 192.168.0.3 -auth /root/.Xauthority -screen 1024x768x16 -mouse mouse,2 -3button
EOF
chmod +x $DESTDIR/usr/bin/Xorg
install -m 755 ${TCOS_BINS}/tryXorg.sh ${DESTDIR}/sbin/tryXorg
cpifexists /usr/bin/xauth /usr/bin
cpifexists /usr/bin/mcookie /usr/bin
# some xutils
cpifexists /usr/bin/xset /usr/bin
cpifexists /usr/bin/xsetroot /usr/bin
cpifexists /usr/bin/xkbcomp /usr/bin
XORG_XKB_DIR=/usr/share/X11/xkb/
[ ! -d "${XORG_XKB_DIR}" ] && XORG_XKB_DIR=/etc/X11/xkb/
mkdir -p ${DESTDIR}/usr/share/X11
# copy all dir (some files not needed)
cp -ra ${XORG_XKB_DIR} ${DESTDIR}/usr/share/X11
# delete symlinks
find ${DESTDIR}/usr/share/X11/ -type l | xargs rm -f --
# keymap DB
cpifexists /usr/share/X11/XKeysymDB /usr/share/X11/
mkdir -p $DESTDIR/var/log
mkdir -p $DESTDIR/etc/X11/xserver
mkdir -p $DESTDIR/etc/X11/PreRun
if [ -d /usr/share/fonts/X11 ]; then
TCOS_FONTS_PATH="/usr/share/fonts/X11"
TCOS_FONT_EXTENSION=".gz"
elif [ ! -L /usr/lib/X11/fonts ]; then
TCOS_FONTS_PATH="/usr/lib/X11/fonts"
TCOS_FONT_EXTENSION=""
else
_echo ""
_echo "ERROR: Cant' locate fonts dir, XFS is deprecated, BUG!!!"
_echo ""
TCOS_FONTS_PATH=""
exit
fi # end of -d /usr/share/fonts/X11
cat << EOF > ${DESTDIR}/sbin/configurexorg
#!/bin/sh
exit 0
EOF
if [ "$TCOS_FONTS_PATH" != "" ]; then
mkdir -p $DESTDIR/$TCOS_FONTS_PATH/misc
mkdir -p $DESTDIR/$TCOS_FONTS_PATH/100dpi
cat << EOF > $DESTDIR/$TCOS_FONTS_PATH/misc/fonts.alias
fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
7x14 -misc-fixed-medium-r-semicondensed--14-120-75-75-c-60-iso8859-1
EOF
cpifexists $TCOS_FONTS_PATH/misc/6x13-ISO8859-1.pcf${TCOS_FONT_EXTENSION} $TCOS_FONTS_PATH/misc
cpifexists $TCOS_FONTS_PATH/misc/cursor.pcf${TCOS_FONT_EXTENSION} $TCOS_FONTS_PATH/misc
mkfontdir $DESTDIR/$TCOS_FONTS_PATH/misc
cpifexists $TCOS_FONTS_PATH/100dpi/helvB24-ISO8859-1.pcf${TCOS_FONT_EXTENSION} $TCOS_FONTS_PATH/100dpi
cpifexists $TCOS_FONTS_PATH/100dpi/helvB08-ISO8859-1.pcf${TCOS_FONT_EXTENSION} $TCOS_FONTS_PATH/100dpi
mkfontdir $DESTDIR/$TCOS_FONTS_PATH/100dpi
fi # end of $TCOS_FONTS_PATH
stat_after "Xfbdev"
fi
|