mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
busybox:
- cleanup fastboot code
This commit is contained in:
parent
d6da63f478
commit
557464b512
@ -7,9 +7,17 @@
|
||||
debugging)
|
||||
DEBUG=yes
|
||||
;;
|
||||
fastboot)
|
||||
FASTBOOT=yes
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# setting some Variables
|
||||
[ "$FASTBOOT" = "yes" ] && \
|
||||
IONICE="ionice -c 1 -n 0" && \
|
||||
NICE_20="nice -n 20"
|
||||
|
||||
# functions
|
||||
progress() {
|
||||
if test "$DEBUG" = yes; then
|
||||
|
@ -12,13 +12,13 @@
|
||||
|
||||
# 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
|
||||
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
|
||||
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
|
||||
progress "starting Loopback Network interface"
|
||||
@ -42,7 +42,7 @@
|
||||
# loading NVidia driver
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
progress "loading NVidia driver"
|
||||
ionice -c 1 -n 0 modprobe nvidia
|
||||
$IONICE modprobe nvidia
|
||||
fi
|
||||
|
||||
# caching xbmc
|
||||
@ -51,25 +51,25 @@
|
||||
# starting Udev
|
||||
progress "starting Udev"
|
||||
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
|
||||
nice -n 20 udevd --daemon
|
||||
nice -n 20 udevadm monitor 2>&1 >/var/log/udev.log &
|
||||
nice -n 20 udevadm control --env STARTUP=1
|
||||
$NICE_20 udevd --daemon
|
||||
$NICE_20 udevadm monitor 2>&1 >/var/log/udev.log &
|
||||
$NICE_20 udevadm control --env STARTUP=1
|
||||
(
|
||||
nice -n 20 udevadm trigger
|
||||
nice -n 20 udevadm settle --timeout=5
|
||||
nice -n 20 udevadm control --env STARTUP=
|
||||
$NICE_20 udevadm trigger
|
||||
$NICE_20 udevadm settle --timeout=5
|
||||
$NICE_20 udevadm control --env STARTUP=
|
||||
)&
|
||||
|
||||
# starting dbus
|
||||
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-uuidgen --ensure
|
||||
|
||||
# starting Connman
|
||||
progress "Starting Connection Manager"
|
||||
mkdir -p /var/run
|
||||
touch /var/run/resolv.conf
|
||||
$IONICE mkdir -p /var/run
|
||||
$IONICE touch /var/run/resolv.conf
|
||||
connmand
|
||||
|
||||
# starting debugging shell
|
||||
|
Loading…
x
Reference in New Issue
Block a user