| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/initramfs-tools/hooks/ |
Upload File : |
#!/bin/sh -e
OPTION=FRAMEBUFFER
PREREQS=""
prereqs() { echo "$PREREQS"; }
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
[ -r /etc/default/brltty ] && . /etc/default/brltty
[ -x /bin/brltty ] || exit 0
if [ "$START_IN_INITRAMFS" = "true" -o "$START_IN_INITRAMFS" = "yes" ]; then
echo -n "Installing BRLTTY into initramfs..."
cp -a /etc/brltty/ $DESTDIR/etc/
cp /etc/brltty.conf $DESTDIR/etc/
cp -a /lib/brltty/ $DESTDIR/lib/
mkdir -p $DESTDIR/var/lib/brltty
cp -a /var/lib/brltty/brltty.prefs $DESTDIR/var/lib/brltty/ 2> /dev/null || true
if [ -d /etc/xdg/brltty ]; then
mkdir -p $DESTDIR/etc/xdg
cp -a /etc/xdg/brltty $DESTDIR/etc/xdg/
fi
mkdir -p $DESTDIR/usr/lib/x86_64-linux-gnu
cp -a /usr/lib/x86_64-linux-gnu/gconv \
$DESTDIR/usr/lib/x86_64-linux-gnu
copy_exec /bin/brltty /bin
manual_add_modules pcspkr
manual_add_modules uinput
echo "done"
else
mkdir -p $DESTDIR/lib/brltty
copy_exec /usr/share/brltty/initramfs/brltty.sh /lib/brltty
mkdir -p $DESTDIR/sbin
copy_exec /sbin/brltty-setup /sbin
fi