mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +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 "$GEEXBOX_VERSION" > $INSTALL/etc/version
|
||||||
echo "OpenELEC" > $INSTALL/etc/openelec-release
|
echo "OpenELEC" > $INSTALL/etc/openelec-release
|
||||||
|
|
||||||
# Audio Driver...
|
# Network support
|
||||||
$SCRIPTS/install alsa
|
[ "$NETWORK" = yes ] && $SCRIPTS/install network
|
||||||
|
|
||||||
# Network...
|
# Graphic support
|
||||||
$SCRIPTS/install network
|
[ ! "$DISPLAYSERVER" = no ] && $SCRIPTS/install $DISPLAYSERVER
|
||||||
|
|
||||||
# Displayserver...
|
# Multimedia support
|
||||||
$SCRIPTS/install $DISPLAYSERVER
|
[ ! "$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...
|
# Games support
|
||||||
$SCRIPTS/install $MEDIACENTER
|
[ "$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
|
# if [ "$BOOTCHART" = yes ]; then
|
||||||
# $SCRIPTS/install acct
|
# $SCRIPTS/install acct
|
||||||
@ -60,31 +77,9 @@ case "$2" in
|
|||||||
# sed -i "s/EXIT_PROC=.*/EXIT_PROC=\"$GUI\"/" $INSTALL/sbin/bootchartd
|
# sed -i "s/EXIT_PROC=.*/EXIT_PROC=\"$GUI\"/" $INSTALL/sbin/bootchartd
|
||||||
# fi
|
# 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
|
# setting up hostname
|
||||||
echo "127.0.0.1 mobile.openelec.tv localhost" > $INSTALL/etc/hosts
|
echo "127.0.0.1 mobile.openelec.tv localhost" > $INSTALL/etc/hosts
|
||||||
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/config
|
mkdir -p $INSTALL/usr/config
|
||||||
tar cf - -C $INSTALL etc | lzma -9 -v > $INSTALL/usr/config/etc.tar.lzma
|
tar cf - -C $INSTALL etc | lzma -9 -v > $INSTALL/usr/config/etc.tar.lzma
|
||||||
rm -rf $INSTALL/etc
|
rm -rf $INSTALL/etc
|
||||||
|
@ -18,7 +18,11 @@ ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/mkpasswd $ROOT_PASSWORD`"
|
|||||||
|
|
||||||
mkdir -p $INSTALL/etc
|
mkdir -p $INSTALL/etc
|
||||||
cp $PKG_DIR/config/sysconfig $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
|
mkdir -p $INSTALL/usr/share/udhcpc
|
||||||
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
|
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
|
||||||
|
@ -1,13 +1,20 @@
|
|||||||
# Welcome Message for e.g. Telnet Server
|
# Welcome Message for e.g. SSH Server (up to 5 Lines e.g. ISSUE0=".." ISSUE1=".."
|
||||||
ISSUE="Welcome to OpenELEC - the powerfull Mediacenter4you"
|
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 to integrate in the target system
|
||||||
ROOT_PASSWORD="openelec"
|
ROOT_PASSWORD="openelec"
|
||||||
|
|
||||||
# Mediacenter to use (moovida / mythtv)
|
# Mediacenter to use (moovida / mythtv / no)
|
||||||
MEDIACENTER=moovida
|
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
|
DISPLAYSERVER=xorg-server
|
||||||
|
|
||||||
# X.org drivers to use (all / ati,intel)
|
# X.org drivers to use (all / ati,intel)
|
||||||
@ -30,6 +37,9 @@
|
|||||||
# build with emulator support (yes / no)
|
# build with emulator support (yes / no)
|
||||||
EMULATORS=yes
|
EMULATORS=yes
|
||||||
|
|
||||||
|
# Coreboot support (yes / no)
|
||||||
|
COREBOOT=no
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
## Do not change anything below this line
|
## Do not change anything below this line
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user