diff --git a/config/path b/config/path index 11f70592ee..b8629a4e46 100644 --- a/config/path +++ b/config/path @@ -255,10 +255,10 @@ add_user() { } add_group() { - # Usage: add_group "groupname" "groupid" + # Usage: add_group "groupname" "groupid" ("members") mkdir -p ${INSTALL}/etc touch ${INSTALL}/etc/group if [ -z "`grep "$1:" ${INSTALL}/etc/group`" ]; then - echo "$1:x:$2:" >> ${INSTALL}/etc/group + echo "$1:x:$2:$3" >> ${INSTALL}/etc/group fi } diff --git a/packages/audio/alsa-utils/scripts/soundconfig b/packages/audio/alsa-utils/scripts/soundconfig index 0179ceb21e..ed523faf2b 100755 --- a/packages/audio/alsa-utils/scripts/soundconfig +++ b/packages/audio/alsa-utils/scripts/soundconfig @@ -9,7 +9,7 @@ mixer() { } ( -. /etc/sysconfig +. /etc/profile progress "Setting up sound card" diff --git a/packages/image/install b/packages/image/install index 0c227b4f13..2419929313 100755 --- a/packages/image/install +++ b/packages/image/install @@ -39,6 +39,7 @@ case "$2" in mkdir -p $INSTALL/var mkdir -p $INSTALL/flash mkdir -p $INSTALL/storage + echo "chmod 1777 $INSTALL/storage" >> $FAKEROOT_SCRIPT ln -sf /var $INSTALL/usr/var ln -sf /var/tmp $INSTALL/tmp diff --git a/packages/mediacenter/xbmc/conf.d/xbmc b/packages/mediacenter/xbmc/conf.d/xbmc deleted file mode 100644 index dcc5b9bf9b..0000000000 --- a/packages/mediacenter/xbmc/conf.d/xbmc +++ /dev/null @@ -1,29 +0,0 @@ -################################################################################ -# Mediacenter environment variables. -# -# This file contains non-OpenELEC evironment variables as well as OpenELEC -# evironment variables that are not user defined. -################################################################################ - -XBMC_CACHING="no" - -#------------------------------------------------------------------------------- -# do not change anything below -#------------------------------------------------------------------------------- - -XBMC_HOME="/usr/share/xbmc" - -export XBMC_HOME - -cache_xbmc () { - progress "caching XBMC" - mkdir -p /var/cache/bin - $IONICE cp -PR /usr/share/xbmc/xbmc.bin /var/cache/bin - touch /var/cache/xbmc.cache -} - -wait_for_xbmc_cache () { - while [ ! -f /var/cache/xbmc.cache ]; do - sleep 1 - done -} \ No newline at end of file diff --git a/packages/mediacenter/xbmc/init.d/09_cache_xbmc b/packages/mediacenter/xbmc/init.d/09_cache_xbmc index 92869d22a7..38b6217b4c 100755 --- a/packages/mediacenter/xbmc/init.d/09_cache_xbmc +++ b/packages/mediacenter/xbmc/init.d/09_cache_xbmc @@ -1,7 +1,7 @@ # # caching xbmc # -# runlevels: openelec, text +# runlevels: openelec, textmode if [ "$XBMC_CACHING" = "yes" ]; then diff --git a/packages/mediacenter/xbmc/profile.d/xbmc.conf b/packages/mediacenter/xbmc/profile.d/xbmc.conf new file mode 100644 index 0000000000..e0aff709be --- /dev/null +++ b/packages/mediacenter/xbmc/profile.d/xbmc.conf @@ -0,0 +1,10 @@ +################################################################################ +# Mediacenter environment variables. +# +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +XBMC_HOME="/usr/share/xbmc" + +export XBMC_HOME diff --git a/packages/mediacenter/xbmc/scripts/xbmc-session b/packages/mediacenter/xbmc/scripts/xbmc-session index dcf8231cf8..9cf7d57ae1 100755 --- a/packages/mediacenter/xbmc/scripts/xbmc-session +++ b/packages/mediacenter/xbmc/scripts/xbmc-session @@ -1,6 +1,6 @@ #!/bin/sh -. /etc/sysconfig +. /etc/profile XBMC_ARGS="--standalone -fs --lircdev $LIRC_OUTPUT" diff --git a/packages/network/avahi/init.d/24_avahi b/packages/network/avahi/init.d/24_avahi index d3833b8fd0..720f62f0f4 100755 --- a/packages/network/avahi/init.d/24_avahi +++ b/packages/network/avahi/init.d/24_avahi @@ -1,6 +1,6 @@ # start Avahi Daemon # -# runlevels: openelec, text +# runlevels: openelec, textmode ( progress "Starting Avahi Daemon" diff --git a/packages/network/connman/init.d/40_connman b/packages/network/connman/init.d/40_connman index a4445a458f..f087aff2aa 100755 --- a/packages/network/connman/init.d/40_connman +++ b/packages/network/connman/init.d/40_connman @@ -1,6 +1,6 @@ # start connman network manager # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "Starting Connection Manager" diff --git a/packages/network/dropbear/init.d/41_sshd b/packages/network/dropbear/init.d/41_sshd index a4c06f5499..b290eff55a 100755 --- a/packages/network/dropbear/init.d/41_sshd +++ b/packages/network/dropbear/init.d/41_sshd @@ -1,22 +1,22 @@ # start ssh server # -# runlevels: openelec, text +# runlevels: openelec, textmode ( # Check for the Dropbear RSA key - if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then + if [ ! -f /storage/.cache/dropbear/dropbear_rsa_host_key ] ; then progress "SSH: generating rsa key" - $IONICE mkdir -p /etc/dropbear - dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1 + $IONICE mkdir -p /storage/.cache/dropbear + dropbearkey -t rsa -f /storage/.cache/dropbear/dropbear_rsa_host_key > /dev/null 2>&1 fi # Check for the Dropbear DSS key - if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then + if [ ! -f /storage/.cache/dropbear/dropbear_dss_host_key ] ; then progress "SSH: generating dsa key" - $IONICE mkdir -p /etc/dropbear - dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1 + $IONICE mkdir -p /storage/.cache/dropbear + dropbearkey -t dss -f /storage/.cache/dropbear/dropbear_dss_host_key > /dev/null 2>&1 fi progress "Starting SSH Server" diff --git a/packages/network/dropbear/install b/packages/network/dropbear/install index bb34dc1fbb..f3d26c5eb0 100755 --- a/packages/network/dropbear/install +++ b/packages/network/dropbear/install @@ -13,5 +13,5 @@ mkdir -p $INSTALL/usr/bin cp -PR $PKG_BUILD/dropbearkey $INSTALL/usr/bin cp -PR $PKG_BUILD/scp $INSTALL/usr/bin -mkdir -p $INSTALL/usr/config/dropbear - ln -s /storage/.config/dropbear $INSTALL/etc/dropbear \ No newline at end of file +mkdir -p $INSTALL/etc + ln -s /storage/.cache/dropbear $INSTALL/etc/dropbear \ No newline at end of file diff --git a/packages/network/samba/build b/packages/network/samba/build index fc6f572717..107e51ea77 100755 --- a/packages/network/samba/build +++ b/packages/network/samba/build @@ -4,6 +4,7 @@ $SCRIPTS/build toolchain $SCRIPTS/build libiconv +$SCRIPTS/build avahi export samba_cv_CC_NEGATIVE_ENUM_VALUES=no diff --git a/packages/network/samba/init.d/42_samba b/packages/network/samba/init.d/42_samba index 0ce3b0e941..1623b35822 100755 --- a/packages/network/samba/init.d/42_samba +++ b/packages/network/samba/init.d/42_samba @@ -1,6 +1,6 @@ # start Samba Server # -# runlevels: openelec, text +# runlevels: openelec, textmode ( progress "Starting Samba server" diff --git a/packages/network/samba/install b/packages/network/samba/install index d007bc0d43..4802894c37 100755 --- a/packages/network/samba/install +++ b/packages/network/samba/install @@ -3,6 +3,7 @@ . config/options $SCRIPTS/install libiconv +$SCRIPTS/install avahi PKG_DIR=`find $PACKAGES -type d -name $1` diff --git a/packages/plugins/SABnzbd/conf.d/SABnzbd b/packages/plugins/SABnzbd/config/sabnzbd.conf similarity index 100% rename from packages/plugins/SABnzbd/conf.d/SABnzbd rename to packages/plugins/SABnzbd/config/sabnzbd.conf diff --git a/packages/plugins/SABnzbd/init.d/33_SABnzbd b/packages/plugins/SABnzbd/init.d/33_SABnzbd index 1ae20d0cab..8a23d93551 100755 --- a/packages/plugins/SABnzbd/init.d/33_SABnzbd +++ b/packages/plugins/SABnzbd/init.d/33_SABnzbd @@ -1,9 +1,11 @@ # Starting SABnzbd Newsgroup downloader daemon # -# runlevels: openelec, text, debug +# runlevels: openelec, textmode ( - progress "Starting SABnzbd Newsgroup downloader daemon" + progress "Starting SABnzbd Newsgroup downloader daemon" - python /usr/share/SABnzbd/SABnzbd.py -d $SABNZBD_ARGS > /dev/null 2>&1 + . /etc/sabnzbd.conf + + python /usr/share/SABnzbd/SABnzbd.py -d $SABNZBD_ARGS > /dev/null 2>&1 )& diff --git a/packages/plugins/SABnzbd/install b/packages/plugins/SABnzbd/install index 632fef0c72..b8772593f2 100755 --- a/packages/plugins/SABnzbd/install +++ b/packages/plugins/SABnzbd/install @@ -10,5 +10,10 @@ $SCRIPTS/install unrar $SCRIPTS/install unzip $SCRIPTS/install par2cmdline +PKG_DIR=`find $PACKAGES -type d -name $1` + mkdir -p $INSTALL/usr/share/$1 - cp -PR $BUILD/$1*/* $INSTALL/usr/share/$1 + cp -P $BUILD/$1*/* $INSTALL/usr/share/$1 + +mkdir -p $INSTALL/etc + cp -P $PKG_DIR/config/*.conf $INSTALL/etc diff --git a/packages/print/freetype/url b/packages/print/freetype/url index 4a5f97f781..91666e4316 100644 --- a/packages/print/freetype/url +++ b/packages/print/freetype/url @@ -1 +1 @@ -http://prdownloads.sourceforge.net/freetype/freetype-2.3.11.tar.bz2 +http://prdownloads.sourceforge.net/freetype/freetype-2.3.12.tar.bz2 diff --git a/packages/sysutils/ConsoleKit/init.d/25_ConsoleKit b/packages/sysutils/ConsoleKit/init.d/25_ConsoleKit index 4db101b8e2..a6f1b8650d 100755 --- a/packages/sysutils/ConsoleKit/init.d/25_ConsoleKit +++ b/packages/sysutils/ConsoleKit/init.d/25_ConsoleKit @@ -1,6 +1,6 @@ # start D-BUS daemon # -# runlevels: openelec, text +# runlevels: openelec, textmode ( progress "Setup ConsoleKit" diff --git a/packages/sysutils/busybox/config/sysconfig b/packages/sysutils/busybox/config/profile similarity index 87% rename from packages/sysutils/busybox/config/sysconfig rename to packages/sysutils/busybox/config/profile index a1a76fde7f..395c8918d1 100644 --- a/packages/sysutils/busybox/config/sysconfig +++ b/packages/sysutils/busybox/config/profile @@ -26,6 +26,6 @@ } # read config files - for config in `ls /etc/conf.d/`; do - . /etc/conf.d/$config + for config in `ls /etc/profile.d/`; do + . /etc/profile.d/$config done diff --git a/packages/sysutils/busybox/init.d/00_debugshell b/packages/sysutils/busybox/init.d/00_debugshell index df87f538b4..556c21174c 100755 --- a/packages/sysutils/busybox/init.d/00_debugshell +++ b/packages/sysutils/busybox/init.d/00_debugshell @@ -1,6 +1,6 @@ # start debug shell # -# runlevels: openelec, text +# runlevels: openelec, textmode TTY="3" @@ -12,7 +12,6 @@ if [ "$DEBUG" = "yes" ]; then echo "## ...... switch with ctrl-alt-f$TTY ...... ##" echo "###########################################" -# exec /bin/sh /dev/tty$TTY 2>&1 & exec /sbin/getty -n -l /bin/sh 38400 tty$TTY & fi diff --git a/packages/sysutils/busybox/init.d/05_mount_filesystem b/packages/sysutils/busybox/init.d/05_mount_filesystem index 2d53d275fa..6435ec78ac 100755 --- a/packages/sysutils/busybox/init.d/05_mount_filesystem +++ b/packages/sysutils/busybox/init.d/05_mount_filesystem @@ -1,7 +1,7 @@ # # mounting needed filesystems # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "mounting needed filesystems" diff --git a/packages/sysutils/busybox/init.d/06_make_directorys b/packages/sysutils/busybox/init.d/06_make_directorys index 0a24862cc4..9f19dc2486 100755 --- a/packages/sysutils/busybox/init.d/06_make_directorys +++ b/packages/sysutils/busybox/init.d/06_make_directorys @@ -1,7 +1,7 @@ # # make variable directory structure # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "make variable directory structure" $IONICE mkdir -p /var/log \ diff --git a/packages/sysutils/busybox/init.d/07_userconfig b/packages/sysutils/busybox/init.d/07_userconfig deleted file mode 100755 index e11f33fa18..0000000000 --- a/packages/sysutils/busybox/init.d/07_userconfig +++ /dev/null @@ -1,13 +0,0 @@ -# -# copying config into storage -# -# runlevels: openelec, text - -progress "copying config into storage" - - $IONICE mkdir -p $HOME/.config - - for i in `ls /usr/config`; do - [ ! -f "$HOME/.config/$i" ] && cp -PR /usr/config/$i $HOME/.config - done - diff --git a/packages/sysutils/busybox/init.d/08_network b/packages/sysutils/busybox/init.d/08_network index b7fb72b0eb..17c3e06c9f 100755 --- a/packages/sysutils/busybox/init.d/08_network +++ b/packages/sysutils/busybox/init.d/08_network @@ -1,11 +1,7 @@ # # start syslog daemon # -# runlevels: openelec, text - -HOSTNAME=`cat /etc/hostname` - -export $HOSTNAME +# runlevels: openelec, textmode # bring lo up, whether we have network card or not progress "starting Loopback Network interface" @@ -14,6 +10,3 @@ export $HOSTNAME # setup hostname progress "Setup hostname" echo $HOSTNAME > /proc/sys/kernel/hostname - -# create /etc/hosts file, useful for gethostbyname(localhost) - echo -e "127.0.0.1\tlocalhost $HOSTNAME" > /var/run/hosts diff --git a/packages/sysutils/busybox/init.d/10_syslogd b/packages/sysutils/busybox/init.d/10_syslogd index ff2b74060c..07438fd050 100755 --- a/packages/sysutils/busybox/init.d/10_syslogd +++ b/packages/sysutils/busybox/init.d/10_syslogd @@ -1,7 +1,7 @@ # # start syslog daemon # -# runlevels: openelec, text +# runlevels: openelec, textmode ( progress "Starting Syslog daemon" diff --git a/packages/sysutils/busybox/init.d/23_acpid b/packages/sysutils/busybox/init.d/23_acpid index bc5fc51180..7583905a4a 100755 --- a/packages/sysutils/busybox/init.d/23_acpid +++ b/packages/sysutils/busybox/init.d/23_acpid @@ -1,6 +1,6 @@ # start the ACPI daemon subsystem # -# runlevels: openelec, text +# runlevels: openelec, textmode ( progress "Starting ACPI daemon" diff --git a/packages/sysutils/busybox/init.d/99_shell b/packages/sysutils/busybox/init.d/99_shell index 6382da0947..96305a951c 100755 --- a/packages/sysutils/busybox/init.d/99_shell +++ b/packages/sysutils/busybox/init.d/99_shell @@ -1,6 +1,6 @@ # start text mode shell # -# runlevels: text +# runlevels: textmode TTY="1" @@ -11,6 +11,5 @@ echo "## ...... switch with ctrl-alt-f$TTY ...... ##" echo "###########################################" while true; do -# exec /bin/sh /dev/tty$TTY 2>&1 exec /sbin/getty -n -l /bin/sh 38400 tty$TTY done diff --git a/packages/sysutils/busybox/install b/packages/sysutils/busybox/install index af6a354309..7070ba4a72 100755 --- a/packages/sysutils/busybox/install +++ b/packages/sysutils/busybox/install @@ -14,7 +14,7 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`" add_group root 0 add_user $USER_NAME "$USER_PWD" 1000 1000 "User" "/storage" "/bin/sh" - add_group $USER_GROUP 1000 + add_group $USER_GROUP 1000 "video" cp -PR $BUILD/busybox*/_install-system/* $INSTALL echo "chmod 4755 $INSTALL/bin/busybox" >> $FAKEROOT_SCRIPT @@ -22,15 +22,21 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`" mkdir -p $INSTALL/bin ln -sf /bin/sh $INSTALL/bin/bash + mkdir -p $INSTALL/sbin + cp $PKG_DIR/scripts/init $INSTALL/sbin/ + mkdir -p $INSTALL/etc - cp $PKG_DIR/config/sysconfig $INSTALL/etc - cp $PKG_DIR/config/sysconfig $INSTALL/etc/profile + cp $PKG_DIR/config/profile $INSTALL/etc touch $INSTALL/etc/fstab ln -sf /var/run/resolv.conf $INSTALL/etc/resolv.conf - ln -sf /var/run/hosts $INSTALL/etc/hosts +# create /etc/hostname echo $HOSTNAME > $INSTALL/etc/hostname +# create /etc/hosts file, useful for gethostbyname(localhost) + echo -e "127.0.0.1\tlocalhost $HOSTNAME" > $INSTALL/etc/hosts + +# create /etc/issue echo $GREATING0 > $INSTALL/etc/issue echo $GREATING1 >> $INSTALL/etc/issue echo $GREATING2 >> $INSTALL/etc/issue @@ -40,10 +46,7 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`" mkdir -p $INSTALL/usr/share/udhcpc cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script - mkdir -p $INSTALL/sbin - cp $PKG_DIR/scripts/init $INSTALL/sbin/ - - # acpid specific +# acpid specific mkdir -p $INSTALL/etc/acpi/PWRF cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080 diff --git a/packages/sysutils/busybox/profile.d/configcache.conf b/packages/sysutils/busybox/profile.d/configcache.conf new file mode 100644 index 0000000000..8370bf345f --- /dev/null +++ b/packages/sysutils/busybox/profile.d/configcache.conf @@ -0,0 +1,10 @@ +################################################################################ +# Core (Shell) environment variables. +# +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +CONFIG_CACHE="/storage/.cache" + +export CONFIG_CACHE \ No newline at end of file diff --git a/packages/sysutils/busybox/profile.d/fastboot.conf b/packages/sysutils/busybox/profile.d/fastboot.conf new file mode 100644 index 0000000000..1e0fb0b912 --- /dev/null +++ b/packages/sysutils/busybox/profile.d/fastboot.conf @@ -0,0 +1,16 @@ +################################################################################ +# Core (Shell) environment variables. +# +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +# setting some Variables + if test "$FASTBOOT" = "yes"; then + IONICE="ionice -c 1 -n 0" + NICE_20="nice -n -20" + else + FASTBOOT=no + fi + +export FASTBOOT \ No newline at end of file diff --git a/packages/sysutils/busybox/conf.d/home b/packages/sysutils/busybox/profile.d/home similarity index 100% rename from packages/sysutils/busybox/conf.d/home rename to packages/sysutils/busybox/profile.d/home diff --git a/packages/sysutils/busybox/profile.d/hostname.conf b/packages/sysutils/busybox/profile.d/hostname.conf new file mode 100644 index 0000000000..c03c63228b --- /dev/null +++ b/packages/sysutils/busybox/profile.d/hostname.conf @@ -0,0 +1,10 @@ +################################################################################ +# Core (Shell) environment variables. +# +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +HOSTNAME=`cat /etc/hostname` + +export HOSTNAME \ No newline at end of file diff --git a/packages/sysutils/busybox/conf.d/language b/packages/sysutils/busybox/profile.d/language similarity index 100% rename from packages/sysutils/busybox/conf.d/language rename to packages/sysutils/busybox/profile.d/language diff --git a/packages/sysutils/busybox/conf.d/path b/packages/sysutils/busybox/profile.d/path similarity index 100% rename from packages/sysutils/busybox/conf.d/path rename to packages/sysutils/busybox/profile.d/path diff --git a/packages/sysutils/busybox/profile.d/path.conf b/packages/sysutils/busybox/profile.d/path.conf new file mode 100644 index 0000000000..18c81147bd --- /dev/null +++ b/packages/sysutils/busybox/profile.d/path.conf @@ -0,0 +1,10 @@ +################################################################################ +# Core (PATH) environment variables. +# +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +PATH="/bin:/sbin:/usr/bin:/usr/sbin" + +export PATH diff --git a/packages/sysutils/busybox/profile.d/runlevel.conf b/packages/sysutils/busybox/profile.d/runlevel.conf new file mode 100644 index 0000000000..94bc54df8f --- /dev/null +++ b/packages/sysutils/busybox/profile.d/runlevel.conf @@ -0,0 +1,14 @@ +################################################################################ +# Core (Shell) environment variables. +# +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +# getting runlevel + RUNLEVEL="openelec" + if test "$TEXTMODE" = yes; then + RUNLEVEL="textmode" + fi + +export RUNLEVEL \ No newline at end of file diff --git a/packages/sysutils/busybox/conf.d/shell b/packages/sysutils/busybox/profile.d/shell.conf similarity index 64% rename from packages/sysutils/busybox/conf.d/shell rename to packages/sysutils/busybox/profile.d/shell.conf index a6f97f1d42..6fca97cfc5 100644 --- a/packages/sysutils/busybox/conf.d/shell +++ b/packages/sysutils/busybox/profile.d/shell.conf @@ -5,9 +5,6 @@ # evironment variables that are not user defined. ################################################################################ -#------------------------------------------------------------------------------- -# Prompt environment variables. -#------------------------------------------------------------------------------- PS1='\u@\h:\w \$ ' export PS1 \ No newline at end of file diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 57254d6e8e..0a0d1756d8 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -1,13 +1,4 @@ -#!/bin/sh - -# read config - . /etc/sysconfig - -# getting runlevel - RUNLEVEL="openelec" - if test "$TEXTMODE" = yes; then - RUNLEVEL="text" - fi +#!/bin/sh -l # starting init scripts for wanted runlevel progress "Starting Init Scripts" diff --git a/packages/sysutils/dbus/init.d/12_dbus b/packages/sysutils/dbus/init.d/12_dbus index 4c959aaa9a..87a8afe0d3 100755 --- a/packages/sysutils/dbus/init.d/12_dbus +++ b/packages/sysutils/dbus/init.d/12_dbus @@ -1,7 +1,7 @@ # # starting dbus # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "Starting D-BUS" diff --git a/packages/sysutils/hal/init.d/13_hal b/packages/sysutils/hal/init.d/13_hal index 0b8f925a22..2fea190991 100755 --- a/packages/sysutils/hal/init.d/13_hal +++ b/packages/sysutils/hal/init.d/13_hal @@ -1,7 +1,7 @@ # # starting HAL # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "Starting Hardware Abstraction Layer" diff --git a/packages/sysutils/lirc/config/sysconfig_mceusb b/packages/sysutils/lirc/config/config_mceusb similarity index 100% rename from packages/sysutils/lirc/config/sysconfig_mceusb rename to packages/sysutils/lirc/config/config_mceusb diff --git a/packages/sysutils/lirc/init.d/32_lirc b/packages/sysutils/lirc/init.d/32_lirc index 91ebd04ff7..9aa4a83b50 100755 --- a/packages/sysutils/lirc/init.d/32_lirc +++ b/packages/sysutils/lirc/init.d/32_lirc @@ -1,10 +1,12 @@ # start the LIRC daemon # -# runlevels: openelec, text +# runlevels: openelec, textmode ( progress "Starting LIRC daemon" + . /etc/lirc.conf + $IONICE mkdir -p /var/run/lirc lircd --driver=$LIRC_DRIVER --device=$LIRC_DEVICE --output=$LIRC_OUTPUT )& diff --git a/packages/sysutils/lirc/install b/packages/sysutils/lirc/install index bb56ffc3b8..caf1b9868a 100755 --- a/packages/sysutils/lirc/install +++ b/packages/sysutils/lirc/install @@ -16,9 +16,7 @@ mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/etc cp $PKG_DIR/config/lircd_$REMOTE.conf $INSTALL/etc/lircd.conf - -mkdir -p $INSTALL/etc/conf.d - cp $PKG_DIR/config/sysconfig_$RECEIVER $INSTALL/etc/conf.d/lirc + cp $PKG_DIR/config/config_$RECEIVER $INSTALL/etc/lirc.conf mkdir -p $INSTALL/lib/modules/$VER/lirc cp $PKG_BUILD/drivers/*/*.ko $INSTALL/lib/modules/$VER/lirc diff --git a/packages/sysutils/plymouth-lite/init.d/00_plymouth b/packages/sysutils/plymouth-lite/init.d/00_plymouth index 3008c940f4..29d0e7e828 100755 --- a/packages/sysutils/plymouth-lite/init.d/00_plymouth +++ b/packages/sysutils/plymouth-lite/init.d/00_plymouth @@ -1,7 +1,7 @@ # # starting splash # -# runlevels: openelec, text +# runlevels: openelec, textmode ( [ "$DEBUG" != "yes" -a "$TEXTMODE" != "yes" \ diff --git a/packages/sysutils/udev/init.d/01_udevd b/packages/sysutils/udev/init.d/01_udevd index c9cfd479f1..24f9fb54b6 100755 --- a/packages/sysutils/udev/init.d/01_udevd +++ b/packages/sysutils/udev/init.d/01_udevd @@ -1,11 +1,13 @@ # # starting Udev daemon # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "starting udev daemon" echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug + $IONICE mkdir -p /dev/rules.d + $NICE_20 udevd --daemon $NICE_20 udevadm monitor 2>&1 >/dev/udev.log & diff --git a/packages/sysutils/udev/init.d/02_udev-monitor b/packages/sysutils/udev/init.d/02_udev-monitor index d08f73e1a1..550b680cd3 100755 --- a/packages/sysutils/udev/init.d/02_udev-monitor +++ b/packages/sysutils/udev/init.d/02_udev-monitor @@ -1,7 +1,7 @@ # # monitoring udev events # -# runlevels: openelec, text +# runlevels: openelec, textmode UDEV_LOGFILE="/dev/.udev.log" diff --git a/packages/sysutils/udev/init.d/03_udev-trigger b/packages/sysutils/udev/init.d/03_udev-trigger index 5334be7550..0c0c7d6bea 100755 --- a/packages/sysutils/udev/init.d/03_udev-trigger +++ b/packages/sysutils/udev/init.d/03_udev-trigger @@ -1,13 +1,11 @@ # # request events from the kernel # -# runlevels: openelec, text +# runlevels: openelec, textmode progress "request udev events from the kernel" ( -# $NICE_20 udevadm control --env STARTUP=1 $NICE_20 udevadm trigger $NICE_20 udevadm settle --timeout=5 -# $NICE_20 udevadm control --env STARTUP= )& diff --git a/packages/sysutils/udev/install b/packages/sysutils/udev/install index c5fc409c38..4762bba424 100755 --- a/packages/sysutils/udev/install +++ b/packages/sysutils/udev/install @@ -67,6 +67,4 @@ mkdir -p $INSTALL/lib/udev/rules.d mkdir -p $INSTALL/etc/udev cp $PKG_BUILD/udev.conf $INSTALL/etc/udev - -mkdir -p $INSTALL/usr/config/rules.d - ln -sf /storage/.config/rules.d $INSTALL/etc/udev/rules.d + ln -sf /dev/rules.d $INSTALL/etc/udev/rules.d diff --git a/packages/x11/driver/xf86-input-synaptics/url b/packages/x11/driver/xf86-input-synaptics/url index cfd5420c1f..3fc046e37c 100644 --- a/packages/x11/driver/xf86-input-synaptics/url +++ b/packages/x11/driver/xf86-input-synaptics/url @@ -1 +1 @@ -http://xorg.freedesktop.org/archive/individual/driver/xf86-input-synaptics-1.2.1.tar.bz2 \ No newline at end of file +http://xorg.freedesktop.org/archive/individual/driver/xf86-input-synaptics-1.2.2.tar.bz2 diff --git a/packages/x11/other/mrxvt/scripts/mrxvt-session b/packages/x11/other/mrxvt/scripts/mrxvt-session index d8a6026cd1..b61bfba40f 100755 --- a/packages/x11/other/mrxvt/scripts/mrxvt-session +++ b/packages/x11/other/mrxvt/scripts/mrxvt-session @@ -1,6 +1,6 @@ #!/bin/sh -. /etc/sysconfig +. /etc/profile [ $START_WM="yes" ] && $WINDOWMANAGER & diff --git a/packages/x11/other/ratpoison/conf.d/ratpoison b/packages/x11/other/ratpoison/profile.d/ratpoison.conf similarity index 94% rename from packages/x11/other/ratpoison/conf.d/ratpoison rename to packages/x11/other/ratpoison/profile.d/ratpoison.conf index 8534c10042..51ecaa05a9 100644 --- a/packages/x11/other/ratpoison/conf.d/ratpoison +++ b/packages/x11/other/ratpoison/profile.d/ratpoison.conf @@ -6,3 +6,5 @@ ################################################################################ WINDOWMANAGER="ratpoison" + +export WINDOWMANAGER \ No newline at end of file diff --git a/packages/x11/other/uxlaunch/init.d/60_uxlaunch b/packages/x11/other/uxlaunch/init.d/60_uxlaunch index b5ab94df6f..34db6085a9 100644 --- a/packages/x11/other/uxlaunch/init.d/60_uxlaunch +++ b/packages/x11/other/uxlaunch/init.d/60_uxlaunch @@ -28,11 +28,11 @@ progress "creating directories needed for Xorg" if lspci -n | grep 0300 | grep -q 10de; then $IONICE ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so $IONICE ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so - UX_ARG="$UX_ARG -c $XORG_NVIDIA_CONF" +# UX_ARG="$UX_ARG -c $XORG_NVIDIA_CONF" else $IONICE ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so $IONICE ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so - UX_ARG="$UX_ARG -c $XORG_CONF" +# UX_ARG="$UX_ARG -c $XORG_CONF" fi progress "starting xsession" diff --git a/packages/x11/other/uxlaunch/patches/010-uxlaunch-add_xconfig_option-0.1.diff b/packages/x11/other/uxlaunch/patches/010-uxlaunch-add_xconfig_option-0.1.diff deleted file mode 100644 index d031e8027b..0000000000 --- a/packages/x11/other/uxlaunch/patches/010-uxlaunch-add_xconfig_option-0.1.diff +++ /dev/null @@ -1,93 +0,0 @@ -diff -Naur uxlaunch-0.46/options.c uxlaunch-0.46.patch/options.c ---- uxlaunch-0.46/options.c 2010-03-04 19:51:44.000000000 +0100 -+++ uxlaunch-0.46.patch/options.c 2010-03-23 09:47:14.394856281 +0100 -@@ -27,6 +27,7 @@ - int tty = 2; - char session[256] = "/usr/bin/mutter --sm-disable"; - char username[256] = "moblin"; -+char xconfig[256] = "/etc/X11/xorg.conf"; - - int verbose = 0; - -@@ -34,6 +35,7 @@ - { "user", 1, NULL, 'u' }, - { "tty", 1, NULL, 't' }, - { "session", 1, NULL, 's' }, -+ { "xconfig", 1, NULL, 'c' }, - { "help", 0, NULL, 'h' }, - { "verbose", 0, NULL, 'v' }, - { 0, 0, NULL, 0} -@@ -46,6 +48,7 @@ - printf(" -u, --user Start session as specific username\n"); - printf(" -t, --tty Start session on alternative tty number\n"); - printf(" -s, --session Start a non-default session\n"); -+ printf(" -c, --xconfig Xorg config file\n"); - printf(" -v, --verbose Display lots of output to the console\n"); - printf(" -h, --help Display this help message\n"); - } -@@ -126,13 +129,15 @@ - tty = atoi(val); - if (!strcmp(key, "session")) - strncpy(session, val, 256); -+ if (!strcmp(key, "xconfig")) -+ strncpy(xconfig, val, 256); - } - fclose(f); - } - - /* parse cmdline - overrides */ - while (1) { -- c = getopt_long(argc, argv, "u:t:s:hv", opts, &i); -+ c = getopt_long(argc, argv, "u:t:s:c:hv", opts, &i); - if (c == -1) - break; - -@@ -146,6 +151,9 @@ - case 's': - strncpy(session, optarg, 256); - break; -+ case 'c': -+ strncpy(xconfig, optarg, 256); -+ break; - case 'h': - usage(argv[0]); - exit (EXIT_SUCCESS); -@@ -171,7 +179,7 @@ - } - - lprintf("uxlaunch v%s started.", VERSION); -- lprintf("user \"%s\", tty #%d, session \"%s\"", username, tty, session); -+ lprintf("user \"%s\", tty #%d, session \"%s\", xconfig \"%s\"", username, tty, session, xconfig); - - pass = getpwnam(username); - if (!pass) -diff -Naur uxlaunch-0.46/uxlaunch.h uxlaunch-0.46.patch/uxlaunch.h ---- uxlaunch-0.46/uxlaunch.h 2010-03-04 19:51:44.000000000 +0100 -+++ uxlaunch-0.46.patch/uxlaunch.h 2010-03-23 09:47:14.395856611 +0100 -@@ -19,6 +19,7 @@ - extern int tty; - extern char session[]; - extern char username[]; -+extern char xconfig[]; - - extern int session_pid; - extern int xpid; -diff -Naur uxlaunch-0.46/xserver.c uxlaunch-0.46.patch/xserver.c ---- uxlaunch-0.46/xserver.c 2010-03-04 19:51:44.000000000 +0100 -+++ uxlaunch-0.46.patch/xserver.c 2010-03-23 09:47:14.401856143 +0100 -@@ -231,13 +231,13 @@ - execl(xserver, xserver, displayname, - "-nolisten", "tcp", "-dpi", "120", "-noreset", - "-auth", xauth_cookie_file, -- vt, NULL); -+ vt, "-config", xconfig, NULL); - } else { - execl(xserver, xserver, displayname, - "-nolisten", "tcp", "-dpi", "120", "-noreset", - "-auth", user_xauth_path, - "-logfile", xorg_log, -- vt, NULL); -+ vt, "-config", xconfig, NULL); - } - exit(0); - } diff --git a/packages/x11/other/uxlaunch/patches/011-uxlaunch-add_nohwaccess_and_nocursor_option-0.1.diff b/packages/x11/other/uxlaunch/patches/011-uxlaunch-add_nohwaccess_and_nocursor_option-0.1.diff deleted file mode 100644 index 78e64004be..0000000000 --- a/packages/x11/other/uxlaunch/patches/011-uxlaunch-add_nohwaccess_and_nocursor_option-0.1.diff +++ /dev/null @@ -1,21 +0,0 @@ -diff -Naur uxlaunch-0.46/xserver.c uxlaunch-0.46.patch/xserver.c ---- uxlaunch-0.46/xserver.c 2010-03-23 09:47:54.621981367 +0100 -+++ uxlaunch-0.46.patch/xserver.c 2010-03-23 09:53:39.703855113 +0100 -@@ -231,13 +231,15 @@ - execl(xserver, xserver, displayname, - "-nolisten", "tcp", "-dpi", "120", "-noreset", - "-auth", xauth_cookie_file, -- vt, "-config", xconfig, NULL); -+ vt, "-config", xconfig, "-nocursor", "-nohwaccess", -+ NULL); - } else { - execl(xserver, xserver, displayname, - "-nolisten", "tcp", "-dpi", "120", "-noreset", - "-auth", user_xauth_path, - "-logfile", xorg_log, -- vt, "-config", xconfig, NULL); -+ vt, "-config", xconfig, "-nocursor", "-nohwaccess", -+ NULL); - } - exit(0); - } diff --git a/scripts/install b/scripts/install index b79fe78222..cbf67edae6 100755 --- a/scripts/install +++ b/scripts/install @@ -22,9 +22,9 @@ if [ -d $PKG_DIR/init.d ]; then cp $PKG_DIR/init.d/* $INSTALL/etc/init.d/ fi -if [ -d $PKG_DIR/conf.d ]; then - mkdir -p $INSTALL/etc/conf.d - cp $PKG_DIR/conf.d/* $INSTALL/etc/conf.d/ +if [ -d $PKG_DIR/profile.d ]; then + mkdir -p $INSTALL/etc/profile.d + cp $PKG_DIR/profile.d/*.conf $INSTALL/etc/profile.d/ fi $SCRIPTS/build $@