mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-02 10:41:46 -04:00
* Switch: it builds * Switch: Use udev to finalize usb gadget to save from systemd looping service restart until cable connected. * Switch: Update kernel stuff again * Switch: Downgrade Alsa packages to version in 4.x tree * Joycond: Update Switch version * Switch: Minor fixes * LibreELEC: Fix a few broken files from upstream pull * Switch: Fix LibreELEC build. * Switch: Update bootloader stuff * L4T: FFMPEG: Add support for nvv4l2 decoder/encoder * FFMPEG: Add back encoder support for game recording in retroarch * FFMPEG: revert a few changes, and add support for vulkan.
26 lines
652 B
Bash
Executable file
26 lines
652 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# setup hostname
|
|
if [ -f /storage/.cache/hostname ]; then
|
|
cat /storage/.cache/hostname > /proc/sys/kernel/hostname
|
|
fi
|
|
|
|
# setup /etc/hosts
|
|
rm -f /run/libreelec/hosts
|
|
if [ -f /storage/.config/hosts.conf ]; then
|
|
cat /storage/.config/hosts.conf > /run/libreelec/hosts
|
|
fi
|
|
|
|
# setup /etc/resolv.conf
|
|
rm -f /run/libreelec/resolv.conf
|
|
if [ -f /storage/.config/resolv.conf ]; then
|
|
cat /storage/.config/resolv.conf > /run/libreelec/resolv.conf
|
|
elif [ -f /dev/.kernel_ipconfig -a -f /proc/net/pnp ]; then
|
|
cat /proc/net/pnp > /run/libreelec/resolv.conf
|
|
else
|
|
cat << EOF > /run/libreelec/resolv.conf
|
|
nameserver 8.8.8.8
|
|
nameserver 8.8.4.4
|
|
EOF
|
|
fi
|
|
|