This file is indexed.

/usr/share/tcos/hooks-addons/54devices is in initramfs-tools-tcos 0.89.86.

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
# hooks addon to use terminal devices
# need ltspfs
# ltspfs
# TCOS_REMOTEFS = shfs ltspfs

mkdir -p $DESTDIR/etc/X11/PreRun/
cat << EOF > $DESTDIR/etc/X11/PreRun/15ltspfs-set-xprop
#!/bin/sh

/bin/ltspfs-set-xprop >> /tmp/initramfs.debug 2>&1 &


EOF

chmod +x $DESTDIR/etc/X11/PreRun/15ltspfs-set-xprop



create_launcher() {
    cat << EOF > $DESTDIR/bin/ltspfs-set-xprop
#!/bin/sh
# wait for Xorg

export DISPLAY=:0
export XAUTHORITY=/root/.Xauthority

if [ "\$1" != "now" ]; then
  sleep 2
fi

echo "ltspfs-set-xprop::waitforX"
waitforX || exit

# wait until Xorg is complety started
if [ "\$1" != "now" ]; then
  sleep 5
fi

echo "ltspfs-set-xprop::setting xprop value"
echo "xprop -root -f LTSPFS_TOKEN 8s -set LTSPFS_TOKEN \$(cat /var/run/ltspfs_token)"
xprop -root -f LTSPFS_TOKEN 8s -set LTSPFS_TOKEN \$(cat /var/run/ltspfs_token)

exit 0
EOF
   chmod +x $DESTDIR/bin/ltspfs-set-xprop
}

if [ "$TCOS_REMOTEFS" = "ltspfs" ]; then

  create_launcher
  cpifexists /usr/bin/xprop   /usr/bin/

  if [ -e /usr/bin/ltspfsd ]; then
   stat_before
   cpifexists /usr/bin/ltspfsd /usr/bin
   stat_after "ltspfsd"

  else
   echo "ERROR:"
   echo ""
   echo "Not LTSPFS support, please install ltspfsd-core."
   echo ""
   echo ""
  fi
fi

if [ $TCOS_NTFS_3G ] && [ ! -e /usr/share/initramfs-tools/hooks/ntfs_3g ]; then
   stat_before
    # copy ntfs-3g bin and force load fuse
    cpifexists /usr/bin/ntfs-3g /usr/bin/
    echo "/usr/bin/ntfs-3g /sbin/mount.ntfs-3g" >> $DESTDIR/conf/links
    manual_add_modules fuse
    echo "fuse" >> $DESTDIR/etc/modules
   stat_after "NTFS-3G tools"
fi