diff options
| author | Koen Kooi <koen@openembedded.org> | 2009-09-17 21:53:11 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@openembedded.org> | 2009-09-17 21:53:11 +0200 |
| commit | 2d899b917c23141945ad34f52b3fd80f93f105fb (patch) | |
| tree | ecc965c7414892cecb75006a86c5c447f7e59c32 /recipes | |
| parent | 62b5c01bde0a1e5769ab4dba184be51d2907933a (diff) | |
| parent | d56ffbe90a9e19915f7bbe1de559438946daa916 (diff) | |
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes')
46 files changed, 1324 insertions, 0 deletions
diff --git a/recipes/efl1/e-wm-illume-dict-pl_git.bb b/recipes/efl1/e-wm-illume-dict-pl_git.bb new file mode 100644 index 0000000000..a5cf1938c4 --- /dev/null +++ b/recipes/efl1/e-wm-illume-dict-pl_git.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Polish dictionary for Illume keyboard" +SECTION = "x11/data" +PV = "1.0-gitr${SRCREV}" +PR = "r0" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/e-wm/${PN}" + +FILES_${PN} = "${libdir}/enlightenment/modules/illume/dicts/Polish.dic" + +do_install() { + install -d ${D}${libdir}/enlightenment/modules/illume/dicts + install -m 0644 ${S}/Polish.dic ${D}${libdir}/enlightenment/modules/illume/dicts/Polish.dic +} diff --git a/recipes/efl1/illume-keyboard-arabic_git.bb b/recipes/efl1/illume-keyboard-arabic_git.bb new file mode 100644 index 0000000000..41ea9e1cd4 --- /dev/null +++ b/recipes/efl1/illume-keyboard-arabic_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "Mohammad Fahmi / Tom Hacohen" +DESCRIPTION = "Illume keyboard with arabic layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "arabic" +INSTFILES = "Arabic.kbd Arabic.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-browse_git.bb b/recipes/efl1/illume-keyboard-browse_git.bb new file mode 100644 index 0000000000..268140c75a --- /dev/null +++ b/recipes/efl1/illume-keyboard-browse_git.bb @@ -0,0 +1,19 @@ +AUTHOR = "Pander" +DESCRIPTION = "Illume keyboard with a layout optimized for browsing" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "browse" +INSTFILES = "\ +Browse.kbd \ +end-browse.png \ +pagedown-browse.png \ +browse.png \ +home-browse.png \ +pageup-browse.png \ +space-browse.png \ +" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-danish_git.bb b/recipes/efl1/illume-keyboard-danish_git.bb new file mode 100644 index 0000000000..21f8ff954a --- /dev/null +++ b/recipes/efl1/illume-keyboard-danish_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "Esben Damgaard" +DESCRIPTION = "Illume keyboard with danish layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "danish" +INSTFILES = "Danish.kbd danish.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-default-alt_git.bb b/recipes/efl1/illume-keyboard-default-alt_git.bb new file mode 100644 index 0000000000..34c3c299bb --- /dev/null +++ b/recipes/efl1/illume-keyboard-default-alt_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "Pander" +DESCRIPTION = "Illume keyboard with an alternative default layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "default-alt" +INSTFILES = "Default-alt.kbd" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-dutch_git.bb b/recipes/efl1/illume-keyboard-dutch_git.bb new file mode 100644 index 0000000000..2300ac7101 --- /dev/null +++ b/recipes/efl1/illume-keyboard-dutch_git.bb @@ -0,0 +1,21 @@ +AUTHOR = "Pander" +DESCRIPTION = "Illume keyboard with dutch layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "dutch" +INSTFILES = "\ +capslock-negative.png \ +end.png \ +pagedown.png \ +qwerty-dutch-nl.png \ +Terminal-dutch-nl.kbd \ +capslock.png \ +home.png \ +pageup.png \ +space.png \ +" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-dvorak_git.bb b/recipes/efl1/illume-keyboard-dvorak_git.bb new file mode 100644 index 0000000000..795d78dcc7 --- /dev/null +++ b/recipes/efl1/illume-keyboard-dvorak_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "Gabor Adam TOTH" +DESCRIPTION = "Illume keyboard with dvorak layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "dvorak" +INSTFILES = "Dvorak.kbd dvorak.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-french_git.bb b/recipes/efl1/illume-keyboard-french_git.bb new file mode 100644 index 0000000000..205a6ad991 --- /dev/null +++ b/recipes/efl1/illume-keyboard-french_git.bb @@ -0,0 +1,10 @@ +DESCRIPTION = "Illume keyboard with french layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "french" +INSTFILES = "Azerty.kbd Azerty.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-german_git.bb b/recipes/efl1/illume-keyboard-german_git.bb new file mode 100644 index 0000000000..0252932116 --- /dev/null +++ b/recipes/efl1/illume-keyboard-german_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "Florian Hackenberger" +DESCRIPTION = "Illume keyboard with german layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "german" +INSTFILES = "German.kbd German.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-hebrew_git.bb b/recipes/efl1/illume-keyboard-hebrew_git.bb new file mode 100644 index 0000000000..8d408b4a91 --- /dev/null +++ b/recipes/efl1/illume-keyboard-hebrew_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "Tom Hacohen" +DESCRIPTION = "Illume keyboard with hebrew layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "hebrew" +INSTFILES = "Hebrew.kbd Alpha-hebrew-il.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-numeric-alt_git.bb b/recipes/efl1/illume-keyboard-numeric-alt_git.bb new file mode 100644 index 0000000000..f2d2487386 --- /dev/null +++ b/recipes/efl1/illume-keyboard-numeric-alt_git.bb @@ -0,0 +1,18 @@ +AUTHOR = "Pander" +DESCRIPTION = "Illume keyboard with an alternative numeric layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "numeric-alt" +INSTFILES = "\ +end-alt.png \ +home-alt.png \ +Numbers-alt.kbd \ +numeric-alt.png \ +pagedown-alt.png \ +pageup-alt.png \ +" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard-russian-terminal_git.bb b/recipes/efl1/illume-keyboard-russian-terminal_git.bb new file mode 100644 index 0000000000..f0a4508d98 --- /dev/null +++ b/recipes/efl1/illume-keyboard-russian-terminal_git.bb @@ -0,0 +1,9 @@ +AUTHOR = "lucky" +DESCRIPTION = "Illume keyboard with russian layout for the Terminal" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "russian-terminal" +INSTFILES = "Terminal_Russian.kbd Terminal-russian-ru.png" + +require illume-keyboard.inc diff --git a/recipes/efl1/illume-keyboard-russian_git.bb b/recipes/efl1/illume-keyboard-russian_git.bb new file mode 100644 index 0000000000..517956bb2b --- /dev/null +++ b/recipes/efl1/illume-keyboard-russian_git.bb @@ -0,0 +1,11 @@ +AUTHOR = "lucky" +DESCRIPTION = "Illume keyboard with russian layout" +PV = "0.0-gitr${SRCREV}" +PR = "r0" + +BASEDIR = "russian" +INSTFILES = "X8_Russian.kbd X8-russian-ru.png" + +require illume-keyboard.inc + + diff --git a/recipes/efl1/illume-keyboard.inc b/recipes/efl1/illume-keyboard.inc new file mode 100644 index 0000000000..4003352cc1 --- /dev/null +++ b/recipes/efl1/illume-keyboard.inc @@ -0,0 +1,14 @@ +SECTION = "x11/data" + +SRC_URI = "git://git.shr-project.org/repo/illume-keyboards.git;protocol=http;branch=master" +S = "${WORKDIR}/git" + +FILES_${PN} = "${libdir}/enlightenment/modules/illume/keyboards/*" +PACKAGE_ARCH = "all" + +do_install() { + install -d ${D}${libdir}/enlightenment/modules/illume/keyboards + for f in ${INSTFILES}; do + install -m 0644 ${S}/${BASEDIR}/${f} ${D}${libdir}/enlightenment/modules/illume/keyboards/ + done +} diff --git a/recipes/shr/alsa-scenarii-shr_git.bb b/recipes/shr/alsa-scenarii-shr_git.bb new file mode 100644 index 0000000000..97b4393459 --- /dev/null +++ b/recipes/shr/alsa-scenarii-shr_git.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Package for the different scenarios used by Openmoko" +SECTION = "openmoko/base" +PV = "1.0+gitr${SRCREV}" +PR = "r1" + +COMPATIBLE_MACHINE = "(om-gta01|om-gta02|om-3d7k)" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/${PN}/${MACHINE_ARCH}" + +do_install() { + install -d ${D}${datadir}/shr/scenarii/ + install -m 644 ${S}/*.state ${D}${datadir}/shr/scenarii/ + install -d ${D}${sysconfdir}/ + install -m 644 ${S}/stereoout.state ${D}${sysconfdir}/asound.state +} + +PACKAGE_ARCH_${PN} = "${MACHINE_ARCH}" + +FILES_${PN} += "${datadir}/shr" + +CONFFILES_${PN} += "${datadir}/shr/scenarii/*" +RPROVIDES_${PN} = "openmoko-alsa-scenarios" + diff --git a/recipes/shr/e-wm-menu-shr_git.bb b/recipes/shr/e-wm-menu-shr_git.bb new file mode 100644 index 0000000000..94529e335a --- /dev/null +++ b/recipes/shr/e-wm-menu-shr_git.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "illume SHR applications.menu config" +SECTION = "e/utils" +LICENSE = "MIT BSD" +PV = "1.1-${EFL_SRCREV}-gitr${SRCREV}" + +RPROVIDES_${PN} = "e-wm-menu" +RCONFLICTS_${PN} = "e-wm-menu" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/e-wm/${PN}" + +FILES_${PN} = "${sysconfdir}/xdg/menus/applications.menu" + +do_install() { + install -d ${D}${sysconfdir}/xdg/menus + install -m 0755 ${S}/applications.menu ${D}${sysconfdir}/xdg/menus/applications.menu +} diff --git a/recipes/shr/e-wm-sysactions-shr_git.bb b/recipes/shr/e-wm-sysactions-shr_git.bb new file mode 100644 index 0000000000..293edaeba3 --- /dev/null +++ b/recipes/shr/e-wm-sysactions-shr_git.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "illume SHR sysactions config" +SECTION = "e/utils" +LICENSE = "MIT BSD" +PV = "1.1-${EFL_SRCREV}-gitr${SRCREV}" +PR = "r3" + +RPROVIDES_${PN} = "e-wm-sysactions" +RCONFLICTS_${PN} = "e-wm-sysactions" +#RREPLACES_${PN} = "e-wm-sysactions" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/e-wm/${PN}" + +FILES_${PN} = "${sysconfdir}/enlightenment" + +do_install() { + install -d ${D}${sysconfdir}/enlightenment/ + install -m 0755 ${S}/sysactions.conf ${D}${sysconfdir}/enlightenment/sysactions.conf + install -m 0755 ${S}/suspend.sh ${D}${sysconfdir}/enlightenment/suspend.sh +} diff --git a/recipes/shr/e-wm-theme-illume-niebiee_git.bb b/recipes/shr/e-wm-theme-illume-niebiee_git.bb new file mode 100644 index 0000000000..bd3412d0ff --- /dev/null +++ b/recipes/shr/e-wm-theme-illume-niebiee_git.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "Extremely blue Illume theme - Niebiee" +SECTION = "e/utils" +DEPENDS = "edje-native" +LICENSE = "MIT BSD" +PV = "0.1-${EFL_SRCREV}-gitr${SRCREV}" +PR = "r0" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/e-wm/${PN}" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/images/. -fd ${S}/fonts/. ${S}/illume-niebiee.edc -o ${S}/illume-niebiee.edj +} + +do_install() { + install -d ${D}${datadir}/enlightenment/data/themes/ + install -m 0644 ${S}/illume-niebiee.edj ${D}${datadir}/enlightenment/data/themes/ +} + +FILES_${PN} = "${datadir}/enlightenment/data/themes/illume-niebiee.edj" + + diff --git a/recipes/shr/e-wm-theme-illume-shr_git.bb b/recipes/shr/e-wm-theme-illume-shr_git.bb new file mode 100644 index 0000000000..0c59feb876 --- /dev/null +++ b/recipes/shr/e-wm-theme-illume-shr_git.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "illume SHR theme" +SECTION = "e/utils" +DEPENDS = "edje-native" +LICENSE = "MIT BSD" +PV = "1.1-${EFL_SRCREV}-gitr${SRCREV}" +PR = "r6" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/e-wm/${PN}" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/images/. -fd ${S}/fonts/. ${S}/illume-shr.edc -o ${S}/illume-shr.edj +} + +do_install() { + install -d ${D}${datadir}/enlightenment/data/themes/ + install -m 0644 ${S}/illume-shr.edj ${D}${datadir}/enlightenment/data/themes/ +} + +FILES_${PN} = "${datadir}/enlightenment/data/themes/illume-shr.edj" + + diff --git a/recipes/shr/e-wm-theme-illume-sixteen_git.bb b/recipes/shr/e-wm-theme-illume-sixteen_git.bb new file mode 100644 index 0000000000..5c3d65825e --- /dev/null +++ b/recipes/shr/e-wm-theme-illume-sixteen_git.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "illume SHR theme" +SECTION = "e/utils" +DEPENDS = "edje-native" +LICENSE = "MIT BSD" +PV = "0.1-${EFL_SRCREV}-gitr${SRCREV}" +PR = "r0" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/e-wm/${PN}" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/images/. -fd ${S}/fonts/. ${S}/illume-sixteen.edc -o ${S}/illume-sixteen.edj +} + +do_install() { + install -d ${D}${datadir}/enlightenment/data/themes/ + install -m 0644 ${S}/illume-sixteen.edj ${D}${datadir}/enlightenment/data/themes/ +} + +FILES_${PN} = "${datadir}/enlightenment/data/themes/illume-sixteen.edj" + + diff --git a/recipes/shr/elementary-theme-niebiee_git.bb b/recipes/shr/elementary-theme-niebiee_git.bb new file mode 100644 index 0000000000..f58257d48c --- /dev/null +++ b/recipes/shr/elementary-theme-niebiee_git.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Extremely blue elementary theme - Niebiee" +SECTION = "e/utils" +DEPENDS = "edje-native" +LICENSE = "MIT BSD" +PV = "0.1-${EFL_SRCREV}-gitr${SRCREV}" +PR = "r0" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/elementary/${PN}" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/images/. -fd ${S}/fonts/. ${S}/niebiee.edc -o ${S}/niebiee.edj +} + +do_install() { + install -d ${D}${datadir}/elementary/themes/ + install -m 0644 ${S}/niebiee.edj ${D}${datadir}/elementary/themes/ +} + +FILES_${PN} = "${datadir}/elementary/themes/niebiee.edj" diff --git a/recipes/shr/elementary-theme-sixteen_git.bb b/recipes/shr/elementary-theme-sixteen_git.bb new file mode 100644 index 0000000000..48cbc615fa --- /dev/null +++ b/recipes/shr/elementary-theme-sixteen_git.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "elementary SHR theme" +SECTION = "e/utils" +DEPENDS = "edje-native" +LICENSE = "MIT BSD" +PV = "0.1-${EFL_SRCREV}-gitr${SRCREV}" +PR = "r2" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/elementary/${PN}" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/images/. -fd ${S}/fonts/. ${S}/sixteen.edc -o ${S}/sixteen.edj +} + +do_install() { + install -d ${D}${datadir}/elementary/themes/ + install -m 0644 ${S}/sixteen.edj ${D}${datadir}/elementary/themes/ +} + +FILES_${PN} = "${datadir}/elementary/themes/sixteen.edj" + + diff --git a/recipes/shr/etk-theme-shr_git.bb b/recipes/shr/etk-theme-shr_git.bb new file mode 100644 index 0000000000..d146765c94 --- /dev/null +++ b/recipes/shr/etk-theme-shr_git.bb @@ -0,0 +1,22 @@ +DESCRIPTION = "etk SHR theme" +SECTION = "e/utils" +DEPENDS = "edje-native" +LICENSE = "MIT BSD" +PV = "1.1-${EFL_SRCREV}-gitr${SRCREV}" + +SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master" + +S = "${WORKDIR}/git/etk/${PN}" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/. -fd ${S}/. ${S}/default.edc -o ${S}/default.edj +} + +do_install() { + install -d ${D}${datadir}/etk/themes/ + install -m 0644 ${S}/default.edj ${D}${datadir}/etk/themes/ +} + +FILES_${PN} = "${datadir}/etk/themes/default.edj" + + diff --git a/recipes/shr/initscripts-shr/alignment.sh b/recipes/shr/initscripts-shr/alignment.sh new file mode 100644 index 0000000000..4a66dc6bc8 --- /dev/null +++ b/recipes/shr/initscripts-shr/alignment.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -e /proc/cpu/alignment ]; then + echo "3" > /proc/cpu/alignment +fi + diff --git a/recipes/shr/initscripts-shr/bootmisc.sh b/recipes/shr/initscripts-shr/bootmisc.sh new file mode 100644 index 0000000000..4511e12fc1 --- /dev/null +++ b/recipes/shr/initscripts-shr/bootmisc.sh @@ -0,0 +1,47 @@ +# +# bootmisc.sh Miscellaneous things to be done during bootup. +# + +. /etc/default/rcS +# +# Put a nologin file in /etc to prevent people from logging in before +# system startup is complete. +# +if test "$DELAYLOGIN" = yes +then + echo "System bootup in progress - please wait" > /etc/nologin + cp /etc/nologin /etc/nologin.boot +fi + +# +# Update /etc/motd. +# +if test "$EDITMOTD" != no +then + uname -a > /etc/motd.tmp + sed 1d /etc/motd >> /etc/motd.tmp + mv /etc/motd.tmp /etc/motd +fi + +# +# Update dynamic library cache +# +#/sbin/ldconfig + +# Set the system clock from hardware clock +# If the timestamp is 1 day or more recent than the current time, +# use the timestamp instead. +[ "$UTC" = yes ] || /etc/init.d/hwclock.sh start + +if ! test -f /etc/.configured && test -e /etc/timestamp +then + SYSTEMDATE=`date "+%Y%m%d"` + TIMESTAMP=`cat /etc/timestamp | awk '{ print substr($0,9,4) substr($0,1,4);}'` + NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE \)` + if [ $NEEDUPDATE -eq 1 ]; then + date `cat /etc/timestamp` + /etc/init.d/hwclock.sh stop + fi +fi + +: exit 0 diff --git a/recipes/shr/initscripts-shr/checkroot.sh b/recipes/shr/initscripts-shr/checkroot.sh new file mode 100644 index 0000000000..197a3a81d7 --- /dev/null +++ b/recipes/shr/initscripts-shr/checkroot.sh @@ -0,0 +1,45 @@ +# +# checkroot.sh Check to root filesystem. +# +# Version: @(#)checkroot.sh 2.84 25-Jan-2002 miquels@cistron.nl +# + +. /etc/default/rcS + +# +# Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned +# from this script *before anything else* with a timeout, like SCO does. +# +test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE + +# +# If the root filesystem was not marked as read-only in /etc/fstab, +# remount the rootfs rw but do not try to change mtab because it +# is on a ro fs until the remount succeeded. Then clean up old mtabs +# and finally write the new mtab. +# This part is only needed if the rootfs was mounted ro. +# +# Also attempt to remount if the noatime option is not present. +# +ROOTFSDEV="/dev/root" +if grep -q "^$ROOTFSDEV .* rw,.*noatime" /proc/mounts; then + echo "Root filesystem already read-write, not remounting" +else + rootmode=rw + + echo "Remounting root file system..." + mount -n -o remount,noatime,$rootmode / + if test "$rootmode" = rw + then + if test ! -L /etc/mtab + then + rm -f /etc/mtab~ /etc/nologin + : > /etc/mtab + fi + mount -f -o remount / + mount -f /proc + test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" + fi +fi + +: exit 0 diff --git a/recipes/shr/initscripts-shr/devpts b/recipes/shr/initscripts-shr/devpts new file mode 100644 index 0000000000..e10e371662 --- /dev/null +++ b/recipes/shr/initscripts-shr/devpts @@ -0,0 +1,5 @@ +# GID of the `tty' group +TTYGRP=5 + +# Set to 600 to have `mesg n' be the default +TTYMODE=620 diff --git a/recipes/shr/initscripts-shr/finish.sh b/recipes/shr/initscripts-shr/finish.sh new file mode 100644 index 0000000000..897f005310 --- /dev/null +++ b/recipes/shr/initscripts-shr/finish.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if ! test -e /etc/.configured; then + opkg-cl configure + > /etc/.configured +fi + diff --git a/recipes/shr/initscripts-shr/functions b/recipes/shr/initscripts-shr/functions new file mode 100644 index 0000000000..fb9a914e4d --- /dev/null +++ b/recipes/shr/initscripts-shr/functions @@ -0,0 +1,17 @@ +# -*-Shell-script-*- +# +# functions This file contains functions to be used by most or all +# shell scripts in the /etc/init.d directory. +# + +machine_id() { # return the machine ID + awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo +} + +killproc() { # kill the named process(es) + pid=`/bin/ps -e x | + /bin/grep $1 | + /bin/grep -v grep | + /bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid +} diff --git a/recipes/shr/initscripts-shr/g_ether.sh b/recipes/shr/initscripts-shr/g_ether.sh new file mode 100644 index 0000000000..9257268936 --- /dev/null +++ b/recipes/shr/initscripts-shr/g_ether.sh @@ -0,0 +1,93 @@ +#!/bin/sh + +# This script runs very early in order to ensure that the USB network comes +# up at first system boot. It gathers or creates the necessary host and device +# mac addresses for the g_ether module at first boot, and writes them to the +# /etc/modprobe.conf/g_ether.conf file. +# +# Due to some oddness with udev, it also modprobes g_ether, only on first boot. + +# If the g_ether module options file exists, nothing to do. + +if [ ! -e /etc/modprobe.d/g_ether.conf ] ; then + +# Gather up all g_ether parameters passed in on the kernel command line, and +# make sure to pass them to the module; this will ensure similar behavior +# between the module and built-in. + +# Begin by searching the command line for the host and dev addrs +da=`sed -n -e 's|.*g_ether\.dev_addr\=\(..:..:..:..:..:..\).*|\1|p' /proc/cmdline` +ha=`sed -n -e 's|.*g_ether\.host_addr\=\(..:..:..:..:..:..\).*|\1|p' /proc/cmdline` + +# If the device address is missing, try to find it some other way +if [ -z "$da" ] ; then + + if grep -q '^Hardware.*GTA02$' /proc/cpuinfo ; then + + # Use the |
