Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
sysconfig
> sysconfig_hwup_strip_static_if_needed.179604.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sysconfig_hwup_strip_static_if_needed.179604.patch of Package sysconfig (Revision 1)
Currently displaying revision
1
,
show latest
--- scripts/hardware/functions.static 2007-01-12 15:55:57.000000000 +0000 +++ scripts/hardware/functions.static 2007-01-12 17:52:28.000000000 +0000 @@ -4,12 +4,20 @@ fi } -get_config_getcfg() { - : -} - -get_config_fast() { - : -} - +: HWDESC=$HWDESC +if [ -z "$CONFIG" ] ; then + case $HWDESC in + static-*) + CONFIG=$HWDESC + HWDESC=${HWDESC##static-} + unset SUBSYSTEM + SUBSYSTEM=`get_subsystem` + if [ $? != 0 ] ; then + err_mesg "Cannot handle subsystem '$SUBSYSTEM'" + exit $R_USAGE + fi + test -r ./scripts/functions.$SUBSYSTEM && . ./scripts/functions.$SUBSYSTEM + ;; + esac +fi --- scripts/hardware/hwup 2007-01-12 15:55:57.000000000 +0000 +++ scripts/hardware/hwup 2007-01-12 17:49:26.000000000 +0000 @@ -300,6 +300,7 @@ if [ -z "$CONFIG" ] ; then case ${HWDESC%%-*} in static|boot) CONFIG=$HWDESC;; + *) test -r hwcfg-static-"$HWDESC" && CONFIG="static-$HWDESC";; esac fi info_mesg "HWDESC='$HWDESC'"