mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
image: add more options to be more flixible, cleanup install script
This commit is contained in:
parent
acb40a4f37
commit
dbef24a844
@ -42,17 +42,34 @@ case "$2" in
|
||||
echo "$GEEXBOX_VERSION" > $INSTALL/etc/version
|
||||
echo "OpenELEC" > $INSTALL/etc/openelec-release
|
||||
|
||||
# Audio Driver...
|
||||
$SCRIPTS/install alsa
|
||||
# Network support
|
||||
[ "$NETWORK" = yes ] && $SCRIPTS/install network
|
||||
|
||||
# Network...
|
||||
$SCRIPTS/install network
|
||||
# Graphic support
|
||||
[ ! "$DISPLAYSERVER" = no ] && $SCRIPTS/install $DISPLAYSERVER
|
||||
|
||||
# Displayserver...
|
||||
$SCRIPTS/install $DISPLAYSERVER
|
||||
# Multimedia support
|
||||
[ ! "$MEDIACENTER" = no ] && $SCRIPTS/install $MEDIACENTER
|
||||
[ ! "$MEDIACENTER" = no ] && $SCRIPTS/install alsa
|
||||
#[ "$LCD4LINUX" = yes ] && $SCRIPTS/install lcd4linux $1
|
||||
#[ "$EXTRACODECS" = yes ] && $SCRIPTS/install extra-codecs-nonfree $1
|
||||
#[ "$EXTRAFIRMWARES" = yes ] && $SCRIPTS/install extra-firmwares-nonfree $1
|
||||
|
||||
# Mediacenter...
|
||||
$SCRIPTS/install $MEDIACENTER
|
||||
# Games support
|
||||
[ "$GAMES" = yes ] && $SCRIPTS/install games
|
||||
#[ "$GAMES" = yes ] && $SCRIPTS/install pygame $1
|
||||
[ "$EMULATORS" = yes ] && $SCRIPTS/install emulators
|
||||
|
||||
# Devtools... (not for Release)
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install gdb
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install pciutils
|
||||
# [ "$DEVTOOLS" = yes ] && $SCRIPTS/install driconf
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install test
|
||||
|
||||
# Devtools for Cooreboot... (not for Release)
|
||||
[ "$COREBOOT" = yes ] && $SCRIPTS/install superiotool
|
||||
[ "$COREBOOT" = yes ] && $SCRIPTS/install flashrom
|
||||
# [ "$COREBOOT" = yes ] && $SCRIPTS/install getpir
|
||||
|
||||
# if [ "$BOOTCHART" = yes ]; then
|
||||
# $SCRIPTS/install acct
|
||||
@ -60,31 +77,9 @@ case "$2" in
|
||||
# sed -i "s/EXIT_PROC=.*/EXIT_PROC=\"$GUI\"/" $INSTALL/sbin/bootchartd
|
||||
# fi
|
||||
|
||||
[ "$EMULATORS" = yes ] && $SCRIPTS/install emulators
|
||||
[ "$GAMES" = yes ] && $SCRIPTS/install games
|
||||
#[ "$GAMES" = yes ] && $SCRIPTS/install pygame $1
|
||||
#[ "$LCD4LINUX" = yes ] && $SCRIPTS/install lcd4linux $1
|
||||
|
||||
# Devtools... (not for Release)
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install gdb
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install pciutils
|
||||
# [ "$DEVTOOLS" = yes ] && $SCRIPTS/install driconf
|
||||
|
||||
# Test to Debug...
|
||||
$SCRIPTS/install test
|
||||
|
||||
# Devtools for Cooreboot... (not for Release)
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install superiotool
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install flashrom
|
||||
# [ "$DEVTOOLS" = yes ] && $SCRIPTS/install getpir
|
||||
|
||||
#[ "$EXTRACODECS" = yes ] && $SCRIPTS/install extra-codecs-nonfree $1
|
||||
#[ "$EXTRAFIRMWARES" = yes ] && $SCRIPTS/install extra-firmwares-nonfree $1
|
||||
|
||||
# setting up hostname
|
||||
echo "127.0.0.1 mobile.openelec.tv localhost" > $INSTALL/etc/hosts
|
||||
|
||||
|
||||
mkdir -p $INSTALL/usr/config
|
||||
tar cf - -C $INSTALL etc | lzma -9 -v > $INSTALL/usr/config/etc.tar.lzma
|
||||
rm -rf $INSTALL/etc
|
||||
|
@ -18,7 +18,11 @@ ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/mkpasswd $ROOT_PASSWORD`"
|
||||
|
||||
mkdir -p $INSTALL/etc
|
||||
cp $PKG_DIR/config/sysconfig $INSTALL/etc
|
||||
echo $ISSUE > $INSTALL/etc/issue
|
||||
echo $ISSUE0 > $INSTALL/etc/issue
|
||||
echo $ISSUE1 >> $INSTALL/etc/issue
|
||||
echo $ISSUE2 >> $INSTALL/etc/issue
|
||||
echo $ISSUE3 >> $INSTALL/etc/issue
|
||||
echo $ISSUE4 >> $INSTALL/etc/issue
|
||||
|
||||
mkdir -p $INSTALL/usr/share/udhcpc
|
||||
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
|
||||
|
@ -1,13 +1,20 @@
|
||||
# Welcome Message for e.g. Telnet Server
|
||||
ISSUE="Welcome to OpenELEC - the powerfull Mediacenter4you"
|
||||
# Welcome Message for e.g. SSH Server (up to 5 Lines e.g. ISSUE0=".." ISSUE1=".."
|
||||
ISSUE0="*******************************************************"
|
||||
ISSUE1="* Welcome to OpenELEC - the powerfull Mediacenter4you *"
|
||||
ISSUE2="* visit http://www.openelec.tviacenter4you *"
|
||||
ISSUE3="*******************************************************"
|
||||
ISSUE4=
|
||||
|
||||
# Root password to integrate in the target system
|
||||
ROOT_PASSWORD="openelec"
|
||||
|
||||
# Mediacenter to use (moovida / mythtv)
|
||||
# Mediacenter to use (moovida / mythtv / no)
|
||||
MEDIACENTER=moovida
|
||||
|
||||
# Displayserver to use (wayland / xorg-server)
|
||||
# build with network support (yes / no)
|
||||
NETWORK=yes
|
||||
|
||||
# Displayserver to use (wayland / xorg-server / no)
|
||||
DISPLAYSERVER=xorg-server
|
||||
|
||||
# X.org drivers to use (all / ati,intel)
|
||||
@ -30,6 +37,9 @@
|
||||
# build with emulator support (yes / no)
|
||||
EMULATORS=yes
|
||||
|
||||
# Coreboot support (yes / no)
|
||||
COREBOOT=no
|
||||
|
||||
#####################################################################
|
||||
## Do not change anything below this line
|
||||
#####################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user