mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
busybox:
- cleanup fastboot code
This commit is contained in:
parent
d6da63f478
commit
557464b512
@ -7,9 +7,17 @@
|
|||||||
debugging)
|
debugging)
|
||||||
DEBUG=yes
|
DEBUG=yes
|
||||||
;;
|
;;
|
||||||
|
fastboot)
|
||||||
|
FASTBOOT=yes
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# setting some Variables
|
||||||
|
[ "$FASTBOOT" = "yes" ] && \
|
||||||
|
IONICE="ionice -c 1 -n 0" && \
|
||||||
|
NICE_20="nice -n 20"
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
progress() {
|
progress() {
|
||||||
if test "$DEBUG" = yes; then
|
if test "$DEBUG" = yes; then
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
|
|
||||||
# mounting needed filesystems
|
# mounting needed filesystems
|
||||||
progress "mounting needed filesystems"
|
progress "mounting needed filesystems"
|
||||||
ionice -c 1 -n 0 mount -n -t ramfs none /var
|
$IONICE mount -n -t ramfs none /var
|
||||||
|
|
||||||
# make variable directory structure
|
# make variable directory structure
|
||||||
progress "make variable directory structure"
|
progress "make variable directory structure"
|
||||||
ionice -c 1 -n 0 mkdir -p /var/log /var/lock /var/media /var/run /var/tmp \
|
$IONICE mkdir -p /var/log /var/lock /var/media /var/run /var/tmp \
|
||||||
/var/run/sepermit
|
/var/run/sepermit
|
||||||
ionice -c 1 -n 0 chmod 1777 /var/run /var/tmp
|
$IONICE chmod 1777 /var/run /var/tmp
|
||||||
|
|
||||||
# bring lo up, whether we have network card or not
|
# bring lo up, whether we have network card or not
|
||||||
progress "starting Loopback Network interface"
|
progress "starting Loopback Network interface"
|
||||||
@ -42,7 +42,7 @@
|
|||||||
# loading NVidia driver
|
# loading NVidia driver
|
||||||
if lspci -n | grep 0300 | grep -q 10de; then
|
if lspci -n | grep 0300 | grep -q 10de; then
|
||||||
progress "loading NVidia driver"
|
progress "loading NVidia driver"
|
||||||
ionice -c 1 -n 0 modprobe nvidia
|
$IONICE modprobe nvidia
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# caching xbmc
|
# caching xbmc
|
||||||
@ -51,25 +51,25 @@
|
|||||||
# starting Udev
|
# starting Udev
|
||||||
progress "starting Udev"
|
progress "starting Udev"
|
||||||
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
|
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
|
||||||
nice -n 20 udevd --daemon
|
$NICE_20 udevd --daemon
|
||||||
nice -n 20 udevadm monitor 2>&1 >/var/log/udev.log &
|
$NICE_20 udevadm monitor 2>&1 >/var/log/udev.log &
|
||||||
nice -n 20 udevadm control --env STARTUP=1
|
$NICE_20 udevadm control --env STARTUP=1
|
||||||
(
|
(
|
||||||
nice -n 20 udevadm trigger
|
$NICE_20 udevadm trigger
|
||||||
nice -n 20 udevadm settle --timeout=5
|
$NICE_20 udevadm settle --timeout=5
|
||||||
nice -n 20 udevadm control --env STARTUP=
|
$NICE_20 udevadm control --env STARTUP=
|
||||||
)&
|
)&
|
||||||
|
|
||||||
# starting dbus
|
# starting dbus
|
||||||
progress "Starting D-BUS"
|
progress "Starting D-BUS"
|
||||||
mkdir -p /var/lib/dbus /var/run/dbus
|
$IONICE mkdir -p /var/lib/dbus /var/run/dbus
|
||||||
dbus-daemon --system
|
dbus-daemon --system
|
||||||
dbus-uuidgen --ensure
|
dbus-uuidgen --ensure
|
||||||
|
|
||||||
# starting Connman
|
# starting Connman
|
||||||
progress "Starting Connection Manager"
|
progress "Starting Connection Manager"
|
||||||
mkdir -p /var/run
|
$IONICE mkdir -p /var/run
|
||||||
touch /var/run/resolv.conf
|
$IONICE touch /var/run/resolv.conf
|
||||||
connmand
|
connmand
|
||||||
|
|
||||||
# starting debugging shell
|
# starting debugging shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user