Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 59ed97839278e430769f6f238340bfbe4804f80e |
|---|---|
| Date: | 2012-05-07 09:53:15 |
| User: | BarryK |
| Comment: | L18L: xgamma-gui fixed |
Tags And Properties
- branch=trunk inherited from [7b0fdb6f2f]
- sym-trunk inherited from [7b0fdb6f2f]
Changes
Changes to woof-code/3builddistro
| Old (5598fd4ddfde04c8) | New (4d6296ec9123621f) | |||
|---|---|---|---|---|
| 1 | #!/bin/sh | 1 | #!/bin/sh | |
| 2 | #(c) Copyright Barry Kauler 2009. | 2 | #(c) Copyright Barry Kauler 2009. | |
| 3 | #2createpackages has already built the generic packages in packages-$DISTRO_FILE_PREFIX/. | 3 | #2createpackages has already built the generic packages in packages-$DISTRO_FILE_PREFIX/. | |
| 4 | #these packages have generic names as specified in the second field of PKGS_SPECS_TABLE, | 4 | #these packages have generic names as specified in the second field of PKGS_SPECS_TABLE, | |
| 5 | #which is a variable in ./DISTRO_PKGS_SPECS. The format of entries in table: | 5 | #which is a variable in ./DISTRO_PKGS_SPECS. The format of entries in table: | |
| 100 hidden lines | ||||
| 106 | #120315 Ubuntu Precise Pangolin has done a big move of files from /lib to /lib/i386-linux-gnu and /usr/lib to /usr/lib/i386-linuxgnu | 106 | #120315 Ubuntu Precise Pangolin has done a big move of files from /lib to /lib/i386-linux-gnu and /usr/lib to /usr/lib/i386-linuxgnu | |
| 107 | #120331 bugfix generating README.HTM on cd. | 107 | #120331 bugfix generating README.HTM on cd. | |
| 108 | #120401 improve choosing locale. | 108 | #120401 improve choosing locale. | |
| 109 | #120502 more support for arm build. | 109 | #120502 more support for arm build. | |
| 110 | #120506 support creation of SD-card image (for arm build). | 110 | #120506 support creation of SD-card image (for arm build). | |
| > | 111 | #120506b check that sd card big enough. | ||
| 111 | 112 | |||
| 112 | #v431 accepts passed params, from woof_gui_tabs: | 113 | #v431 accepts passed params, from woof_gui_tabs: | |
| 113 | #$1=$CHOICE_KERNELPKG $2=$CHOICE_SCSI $3=$CHOICE_BIGMODEM $4=$CHK_FB_STATE $5=$CHK_EXOTIC_STATE $6=$CHK_RADICAL_STATE | 114 | #$1=$CHOICE_KERNELPKG $2=$CHOICE_SCSI $3=$CHOICE_BIGMODEM $4=$CHK_FB_STATE $5=$CHK_EXOTIC_STATE $6=$CHK_RADICAL_STATE | |
| 114 | #100912 add $7=CHK_SIMPLE_FILENAMES | 115 | #100912 add $7=CHK_SIMPLE_FILENAMES | |
| 115 | 116 | |||
| 2463 hidden lines | ||||
| 2579 | exit 1 | 2580 | exit 1 | |
| 2580 | fi | 2581 | fi | |
| 2581 | sync | 2582 | sync | |
| 2582 | SDBASE="`basename $SDIMAGE .xz`" | 2583 | SDBASE="`basename $SDIMAGE .xz`" | |
| 2583 | IMGBYTES=`stat --format=%s $SDBASE` | 2584 | IMGBYTES=`stat --format=%s $SDBASE` | |
| > | 2585 | #120506b check that sd card big enough... | ||
| > | 2586 | SDCARDBYTES=`disktype ${SDDEVICE} | grep '^Block device' | cut -f 2 -d '(' | cut -f 1 -d ' '` #ex: 4023386112 | ||
| > | 2587 | if [ $IMGBYTES -gt $SDCARDBYTES ];then | ||
| > | 2588 | echo | ||
| > | 2589 | echo "Sorry, the image file is ${IMGBYTES}bytes, however the | ||
| > | 2590 | SD card is only ${SDCARDBYTES}bytes. Cannot continue." | ||
| > | 2591 | exit 1 | ||
| > | 2592 | fi | ||
| 2584 | echo "Writing skeleton image to ${SDDEVICE}, please wait very patiently..." | 2593 | echo "Writing skeleton image to ${SDDEVICE}, please wait very patiently..." | |
| 2585 | dd if=${SDBASE} of=${SDDEVICE} | 2594 | dd if=${SDBASE} of=${SDDEVICE} | |
| 2586 | if [ $? -ne 0 ];then | 2595 | if [ $? -ne 0 ];then | |
| 2587 | echo "Sorry, operation failure. Aborting script." | 2596 | echo "Sorry, operation failure. Aborting script." | |
| 2588 | exit 1 | 2597 | exit 1 | |
| 279 hidden lines | ||||
| 2868 | echo "Script finished." | 2877 | echo "Script finished." | |
| 2869 | echo -n "Press ENTER key to exit: " | 2878 | echo -n "Press ENTER key to exit: " | |
| 2870 | read yeahgetout | 2879 | read yeahgetout | |
| 2871 | ###END### | 2880 | ###END### | |
| 2872 | 2881 | |||
Changes to woof-code/rootfs-skeleton/usr/sbin/updatenetmoduleslist.sh
| Old (6444b29859a9cd4b) | New (2711923b722b049e) | |||
|---|---|---|---|---|
| 1 | #!/bin/bash | 1 | #!/bin/bash | |
| 2 | #Barry Kauler 2009 | 2 | #Barry Kauler 2009 | |
| 3 | #w001 now in /usr/sbin in the distro, called from /etc/rc.d/rc.update. | 3 | #w001 now in /usr/sbin in the distro, called from /etc/rc.d/rc.update. | |
| 4 | #w474 bugfix for 2.6.29 kernel, modules.dep different format. | 4 | #w474 bugfix for 2.6.29 kernel, modules.dep different format. | |
| 5 | #w478 old k2.6.18.1 has madwifi modules (ath_pci.ko) in /lib/modules/2.6.18.1/net. | 5 | #w478 old k2.6.18.1 has madwifi modules (ath_pci.ko) in /lib/modules/2.6.18.1/net. | |
| 6 | #v423 now using busybox depmod, which generates modules.dep in "old" format. | 6 | #v423 now using busybox depmod, which generates modules.dep in "old" format. | |
| 7 | #111027 make modinfo quiet. | 7 | #111027 make modinfo quiet. | |
| > | 8 | #120507 improve kernel version test. add 'sdio' interfaces. | ||
| 8 | 9 | |||
| 9 | KERNVER="`uname -r`" | 10 | KERNVER="`uname -r`" | |
| 10 | KERNSUBVER=`echo -n $KERNVER | cut -f 3 -d '.' | cut -f 1 -d '-'` #29 | 11 | KERNSUBVER=`echo -n $KERNVER | cut -f 3 -d '.' | cut -f 1 -d '-'` #29 | |
| 11 | KERNMAJVER=`echo -n $KERNVER | cut -f 2 -d '.'` #6 | 12 | KERNMAJVER=`echo -n $KERNVER | cut -f 2 -d '.'` #6 | |
| 12 | DRIVERSDIR="/lib/modules/$KERNVER/kernel/drivers/net" | 13 | DRIVERSDIR="/lib/modules/$KERNVER/kernel/drivers/net" | |
| 13 | 14 | |||
| 14 | echo "Updating /etc/networkmodules..." | 15 | echo "Updating /etc/networkmodules..." | |
| 15 | 16 | |||
| 16 | DEPFORMAT='new' | 17 | DEPFORMAT='new' | |
| 17 | [ $KERNSUBVER -lt 29 ] && [ $KERNMAJVER -eq 6 ] && DEPFORMAT='old' | | | 18 | #[ $KERNSUBVER -lt 29 ] && [ $KERNMAJVER -eq 6 ] && DEPFORMAT='old' |
| | | 19 | if vercmp $KERNVER lt 2.6.29; then #120507 | ||
| | | 20 | DEPFORMAT='old' | ||
| | | 21 | fi | ||
| 18 | #v423 need better test, as now using busybox depmod... | 22 | #v423 need better test, as now using busybox depmod... | |
| 19 | [ "`grep '^/lib/modules' /lib/modules/${KERNVER}/modules.dep`" != "" ] && DEPFORMAT='old' | 23 | [ "`grep '^/lib/modules' /lib/modules/${KERNVER}/modules.dep`" != "" ] && DEPFORMAT='old' | |
| 20 | 24 | |||
| 21 | if [ "$DEPFORMAT" = "old" ];then | 25 | if [ "$DEPFORMAT" = "old" ];then | |
| 22 | OFFICIALLIST="`cat /lib/modules/${KERNVER}/modules.dep | grep "^/lib/modules/$KERNVER/kernel/drivers/net/" | sed -e 's/\.gz:/:/' | cut -f 1 -d ':'`" | 26 | OFFICIALLIST="`cat /lib/modules/${KERNVER}/modules.dep | grep "^/lib/modules/$KERNVER/kernel/drivers/net/" | sed -e 's/\.gz:/:/' | cut -f 1 -d ':'`" | |
| 37 hidden lines | ||||
| 60 | echo "Adding $ONEBASE" | 64 | echo "Adding $ONEBASE" | |
| 61 | echo -e "$ONEBASE \"$ONETYPE: $ONEDESCR\"" >> /tmp/networkmodules | 65 | echo -e "$ONEBASE \"$ONETYPE: $ONEDESCR\"" >> /tmp/networkmodules | |
| 62 | fi | 66 | fi | |
| 63 | #v408 add b43legacy.ko... | 67 | #v408 add b43legacy.ko... | |
| 64 | if [ "$ONETYPE" = "ssb" ];then | 68 | if [ "$ONETYPE" = "ssb" ];then | |
| > | 69 | echo "Adding $ONEBASE" | ||
| > | 70 | echo -e "$ONEBASE \"$ONETYPE: $ONEDESCR\"" >> /tmp/networkmodules | ||
| > | 71 | fi | ||
| > | 72 | #120507 add sdio interfaces... | ||
| > | 73 | if [ "$ONETYPE" = "sdio" ];then | ||
| 65 | echo "Adding $ONEBASE" | 74 | echo "Adding $ONEBASE" | |
| 66 | echo -e "$ONEBASE \"$ONETYPE: $ONEDESCR\"" >> /tmp/networkmodules | 75 | echo -e "$ONEBASE \"$ONETYPE: $ONEDESCR\"" >> /tmp/networkmodules | |
| 67 | fi | 76 | fi | |
| 68 | done | 77 | done | |
| 69 | 78 | |||
| 70 | sort -u /tmp/networkmodules > /etc/networkmodules | 79 | sort -u /tmp/networkmodules > /etc/networkmodules | |
| 71 | 80 | |||
| 72 | ###end### | 81 | ###end### | |
Changes to woof-code/rootfs-skeleton/usr/sbin/xgamma-gui
| Old (3eac59c851ed2b2c) | New (fbf998392e93012a) | |||
|---|---|---|---|---|
| 1 | #!/bin/bash | 1 | #!/bin/bash | |
| 2 | #Written by PANZERKOPF | 2 | #Written by PANZERKOPF | |
| 3 | #100215 hacked by BK | 3 | #100215 hacked by BK | |
| 4 | #120330 L18L: internationalized. | 4 | #120330 L18L: internationalized. | |
| > | 5 | #120507 L18L: 10.0 = 100 using bc now because: Gamma values must be between 0.100 and 10.000 L18L | ||
| 5 | 6 | |||
| > | 7 | . gettext.sh | ||
| 6 | export TEXTDOMAIN=xgamma-gui | 8 | export TEXTDOMAIN=xgamma-gui | |
| 7 | export OUTPUT_CHARSET=UTF-8 | 9 | export OUTPUT_CHARSET=UTF-8 | |
| 8 | 10 | |||
| 9 | TITLE="$(gettext 'Monitor Gamma calibration')" | 11 | TITLE="$(gettext 'Monitor Gamma calibration')" | |
| 10 | BACKTITLE="$(gettext 'Set percentage value for each colour,\nor adjust equally if only want to adjust\nbrightness of screen')" | 12 | BACKTITLE="$(gettext 'Set percentage value for each colour,\nor adjust equally if only want to adjust\nbrightness of screen')" | |
| 12 | if [ "`which xgamma`" = "" ]; then | 14 | if [ "`which xgamma`" = "" ]; then | |
| 13 | Xdialog --title "${TITLE}" --msgbox "$(gettext 'xgamma not found.')" 0 0 | 15 | Xdialog --title "${TITLE}" --msgbox "$(gettext 'xgamma not found.')" 0 0 | |
| 14 | exit | 16 | exit | |
| 15 | fi | 17 | fi | |
| 16 | 18 | |||
| 17 | GAMMA='100/100/100' | | | 19 | GAMMA='100/100/100' # percentages |
| 18 | #file contains one line like this: xgamma -rgamma 1.00 -ggamma 1.00 -bgamma 1.00 #100/100/100 | 20 | #file contains one line like this: xgamma -rgamma 1.00 -ggamma 1.00 -bgamma 1.00 #100/100/100 | |
| > | 21 | #file contains one line like this: xgamma -rgamma 10.00 -ggamma 9.90 -bgamma 10.00 #100/99/100 | ||
| 19 | [ -f $HOME/.xgamma-gamma ] && GAMMA="`cat $HOME/.xgamma-gamma | cut -f 2 -d '#'`" | 22 | [ -f $HOME/.xgamma-gamma ] && GAMMA="`cat $HOME/.xgamma-gamma | cut -f 2 -d '#'`" | |
| 20 | 23 | |||
| 21 | EXCODE="0" | 24 | EXCODE="0" | |
| 22 | < | |||
| 23 | while [ "${EXCODE}" = "0" ]; do | 25 | while [ "${EXCODE}" = "0" ]; do | |
| 24 | 26 | |||
| 25 | if [ ! -z ${xGAMMA} ]; then | 27 | if [ ! -z ${xGAMMA} ]; then | |
| 26 | xgamma -rgamma ${xGAMMA:0:1}.${xGAMMA:1:2} -ggamma ${xGAMMA:4:1}.${xGAMMA:5:2} -bgamma ${xGAMMA:8:1}.${xGAMMA:9:2} | | | 28 | echo ${xGAMMA} |
| | | 29 | #xgamma -rgamma ${xGAMMA:0:1}.${xGAMMA:1:2} -ggamma ${xGAMMA:4:1}.${xGAMMA:5:2} -bgamma ${xGAMMA:8:1}.${xGAMMA:9:2} | ||
| | | 30 | rg=`echo ${xGAMMA} | cut -d '/' -f1` ; rgf=`echo "scale=3; $rg / 10" | bc -l` | ||
| | | 31 | gg=`echo ${xGAMMA} | cut -d '/' -f2` ; ggf=`echo "scale=3; $gg / 10" | bc -l` | ||
| | | 32 | bg=`echo ${xGAMMA} | cut -d '/' -f3` ; bgf=`echo "scale=3; $bg / 10" | bc -l` | ||
| | | 33 | xgamma -rgamma $rgf -ggamma $ggf -bgamma $bgf | ||
| 27 | sGAMMA=${xGAMMA} | 34 | sGAMMA=${xGAMMA} | |
| 28 | xgamma | 35 | xgamma | |
| > | 36 | #fi | ||
| > | 37 | else # inclusion of this block is new | ||
| > | 38 | #echo GAMMA=$GAMMA | ||
| > | 39 | rg=`echo ${GAMMA} | cut -d '/' -f1` ; rgf=`echo "scale=3; $rg / 10" | bc -l` | ||
| > | 40 | gg=`echo ${GAMMA} | cut -d '/' -f2` ; ggf=`echo "scale=3; $gg / 10" | bc -l` | ||
| > | 41 | bg=`echo ${GAMMA} | cut -d '/' -f3` ; bgf=`echo "scale=3; $bg / 10" | bc -l` | ||
| 29 | fi | 42 | fi | |
| 30 | | | 43 | # xGAMMA=`Xdialog --screen-center --left --backtitle "${BACKTITLE}" --title "${TITLE}" --stdout --buttons-style "text" --icon "/usr/share/images/xgamma-gui.xpm" --ok-label "$(gettext 'Apply')" --cancel-label "$(gettext 'Exit')" \ | |
| | | 44 | #--3spinsbox "" 0 0 "0" "199" "${GAMMA:0:3}" "$(gettext 'Red')" "0" "199" "${GAMMA:4:3}" "$(gettext 'Green')" "0" "199" "${GAMMA:8:3}" "$(gettext 'Blue')"` | ||
| 31 | xGAMMA=`Xdialog --screen-center --left --backtitle "${BACKTITLE}" --title "${TITLE}" --stdout --buttons-style "text" --icon "/usr/share/images/xgamma-gui.xpm" --ok-label "$(gettext 'Apply')" --cancel-label "$(gettext 'Exit')" \ | 45 | xGAMMA=`Xdialog --screen-center --left --backtitle "${BACKTITLE}" --title "${TITLE}" --stdout --buttons-style "text" --icon "/usr/share/images/xgamma-gui.xpm" --ok-label "$(gettext 'Apply')" --cancel-label "$(gettext 'Exit')" \ | |
| 32 | --3spinsbox "" 0 0 "0" "199" "${GAMMA:0:3}" "$(gettext 'Red')" "0" "199" "${GAMMA:4:3}" "$(gettext 'Green')" "0" "199" "${GAMMA:8:3}" "$(gettext 'Blue')"` | | | 46 | --3spinsbox "" 0 0 "0" "100" "${rg}" "$(gettext 'Red')" "0" "100" "${gg}" "$(gettext 'Green')" "0" "100" "${bg}" "$(gettext 'Blue')"` |
| 33 | EXCODE=${?} | 47 | EXCODE=${?} | |
| 34 | 48 | |||
| 35 | done | 49 | done | |
| 36 | 50 | |||
| 37 | if [ ! -z ${sGAMMA} ]; then | 51 | if [ ! -z ${sGAMMA} ]; then | |
| > | 52 | #Xdialog --yesno "$(gettext 'Save current configuration?')" 0 0 | ||
| 38 | Xdialog --ok-label "$(gettext 'Yes')" --cancel-label "$(gettext 'No')" --yesno "$(gettext 'Save current configuration?')" 0 0 | 53 | Xdialog --ok-label "$(gettext 'Yes')" --cancel-label "$(gettext 'No')" --yesno "$(gettext 'Save current configuration?')" 0 0 | |
| 39 | if [ ${?} -eq 0 ]; then | 54 | if [ ${?} -eq 0 ]; then | |
| 40 | echo -n "xgamma -rgamma ${sGAMMA:0:1}.${sGAMMA:1:2} -ggamma ${sGAMMA:4:1}.${sGAMMA:5:2} -bgamma ${sGAMMA:8:1}.${sGAMMA:9:2}"' &' > $HOME/.xgamma-gamma | | | 55 | #echo -n "xgamma -rgamma ${sGAMMA:0:1}.${sGAMMA:1:2} -ggamma ${sGAMMA:4:1}.${sGAMMA:5:2} -bgamma ${sGAMMA:8:1}.${sGAMMA:9:2}"' &' > $HOME/.xgamma-gamma |
| | | 56 | #echo -n "xgamma -rgamma $rg -ggamma $gg -bgamma $bg"' &' > $HOME/.xgamma-gamma | ||
| | | 57 | echo -n "xgamma -rgamma $rgf -ggamma $ggf -bgamma $bgf"' &' > $HOME/.xgamma-gamma | ||
| 41 | echo " #${sGAMMA}" >> $HOME/.xgamma-gamma | 58 | echo " #${sGAMMA}" >> $HOME/.xgamma-gamma | |
| 42 | #...xgamma is executed in /root/.xinitrc | 59 | #...xgamma is executed in /root/.xinitrc | |
| 43 | echo "Saved" | | | 60 | echo "$(gettext 'Saved')" |
| 44 | #ummm, but if defaults, don't need xgamma... | 61 | #ummm, but if defaults, don't need xgamma... | |
| 45 | [ "$sGAMMA" = "100/100/100" ] && rm -f $HOME/.xgamma-gamma #saves time in .xinitrc | 62 | [ "$sGAMMA" = "100/100/100" ] && rm -f $HOME/.xgamma-gamma #saves time in .xinitrc | |
| 46 | fi | 63 | fi | |
| 47 | fi | 64 | fi | |
| 48 | 65 | |||
| 49 | ###END### | 66 | ###END### | |