Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 40efc714d43322c5bfceee731a3b55f34b31f815 |
|---|---|
| Date: | 2012-01-31 00:58:39 |
| User: | BarryK |
| Comment: | rodin.s: internationalized pgprs scripts, clean_desk_icons, pup_event_frontend_d, pupdialog, xwin |
Tags And Properties
- branch=trunk inherited from [7b0fdb6f2f]
- sym-trunk inherited from [7b0fdb6f2f]
Changes
Changes to woof-code/kernel-skeleton/lib/modules/all-firmware/pgprs/usr/bin/pgprs-connect
| Old (477e1d8805d74938) | New (cd02de42217665fd) | |||
|---|---|---|---|---|
| 1 | #!/bin/sh | 1 | #!/bin/sh | |
| > | 2 | #120131 rodin.s: internationalized. | ||
| > | 3 | |||
| > | 4 | export TEXTDOMAIN=pgprs-connect | ||
| > | 5 | export OUTPUT_CHARSET=UTF-8 | ||
| > | 6 | |||
| 2 | n="r" | 7 | n="r" | |
| 3 | while [ "$n" = "r" ] | 8 | while [ "$n" = "r" ] | |
| 4 | do | 9 | do | |
| 5 | /usr/sbin/pppd call gprsmm | 10 | /usr/sbin/pppd call gprsmm | |
| 6 | n="q" | 11 | n="q" | |
| 7 | echo "Exit status is $?" | 12 | echo "Exit status is $?" | |
| 8 | echo "DISCONNECTED" | | | 13 | echo "$(gettext 'DISCONNECTED')" |
| 9 | echo "" | 14 | echo "" | |
| 10 | echo "Press ENTER to quit" | | | 15 | echo "$(gettext 'Press ENTER to quit')" |
| 11 | echo "Press r ENTER to reconnect/try again" | | | 16 | echo "$(gettext 'Press r ENTER to reconnect/try again')" |
| 12 | read n | 17 | read n | |
| 13 | done | 18 | done | |
Changes to woof-code/kernel-skeleton/lib/modules/all-firmware/pgprs/usr/bin/pgprs-setup
| Old (0b3863a7b5f0616b) | New (816f190e05c6af9a) | |||
|---|---|---|---|---|
| 1 | #! /bin/bash | 1 | #! /bin/bash | |
| 2 | # PGPRS SETUP: Puppy Generic GPRS Modem Setup Utility | 2 | # PGPRS SETUP: Puppy Generic GPRS Modem Setup Utility | |
| 3 | #(c) Copyright Aug. 2008 Lloyd Standish www.voluntary-simplicity.org/linux | 3 | #(c) Copyright Aug. 2008 Lloyd Standish www.voluntary-simplicity.org/linux | |
| 4 | #2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html) | 4 | #2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html) | |
| 5 | # version 1.3 Aug. 16, 2008 | 5 | # version 1.3 Aug. 16, 2008 | |
| 6 | #101204 Dejan: if there's no pin gtkdialog has errors, put 1234 instead blank. | 6 | #101204 Dejan: if there's no pin gtkdialog has errors, put 1234 instead blank. | |
| > | 7 | #120131 rodin.s: i18n | ||
| > | 8 | |||
| > | 9 | export TEXTDOMAIN=pgprs-setup | ||
| > | 10 | export OUTPUT_CHARSET=UTF-8 | ||
| > | 11 | . gettext.sh | ||
| 7 | 12 | |||
| 8 | 13 | |||
| 9 | function wordreplace() { | 14 | function wordreplace() { | |
| 10 | #argument 1: file to search | 15 | #argument 1: file to search | |
| 11 | #argument 2: search phrase | 16 | #argument 2: search phrase | |
| 22 hidden lines | ||||
| 34 | # phone: /etc/ppp/peers/gprs-connect-chatmm | 39 | # phone: /etc/ppp/peers/gprs-connect-chatmm | |
| 35 | # APN /etc/ppp/peers/gprs-connect-chatmm | 40 | # APN /etc/ppp/peers/gprs-connect-chatmm | |
| 36 | # PIN /etc/ppp/peers/gprs-connect-chatmm | 41 | # PIN /etc/ppp/peers/gprs-connect-chatmm | |
| 37 | 42 | |||
| 38 | if [ ! -f "/etc/ppp/peers/gprsmm" -o ! -f "/etc/ppp/peers/gprs-connect-chatmm" ]; then | 43 | if [ ! -f "/etc/ppp/peers/gprsmm" -o ! -f "/etc/ppp/peers/gprs-connect-chatmm" ]; then | |
| 39 | xmessage -bg "#ff8080" -center -title "PGPRS SETUP" "ERROR: one or more PGPRS files missing. Please reinstall package" | | | 44 | xmessage -bg "#ff8080" -center -title "$(gettext 'PGPRS SETUP')" "$(gettext 'ERROR: one or more PGPRS files missing. Please reinstall package')" |
| 40 | fi | 45 | fi | |
| 41 | USER=$"`grep "^user" /etc/ppp/peers/gprsmm | sed 's/\(^user[ ]*\"\)\([^\"]*\)\(.*\)/\2/'`" | 46 | USER=$"`grep "^user" /etc/ppp/peers/gprsmm | sed 's/\(^user[ ]*\"\)\([^\"]*\)\(.*\)/\2/'`" | |
| 42 | OLDUSER="$USER" | 47 | OLDUSER="$USER" | |
| 43 | if [ "$USER" = "" ]; then | 48 | if [ "$USER" = "" ]; then | |
| 44 | USER=gprsuser | 49 | USER=gprsuser | |
| 34 hidden lines | ||||
| 79 | # -a "`echo ATZ > "$DEVICE"`" = "" | 84 | # -a "`echo ATZ > "$DEVICE"`" = "" | |
| 80 | DETECTED="$DETECTED $DEVICE" | 85 | DETECTED="$DETECTED $DEVICE" | |
| 81 | fi | 86 | fi | |
| 82 | done | 87 | done | |
| 83 | if [ "$DETECTED" = "" ]; then | 88 | if [ "$DETECTED" = "" ]; then | |
| 84 | DETECTED="No devices detected. If USB, plug device and click 'RE-PROBE MODEMS'" | | | 89 | DETECTED="`gettext \"No devices detected. If USB, plug device and click 'RE-PROBE MODEMS'\"`" |
| 85 | else | 90 | else | |
| 86 | DETECTED="detected devices: $DETECTED" | | | 91 | DETECTED="$(gettext 'detected devices:') $DETECTED" |
| 87 | fi | 92 | fi | |
| 88 | export MAIN_DIALOG=" | 93 | export MAIN_DIALOG=" | |
| 89 | <vbox> | 94 | <vbox> | |
| 90 | <text use-markup=\"true\"> <label>\"<b>PGPRS MODEM SETUP</b>\"</label></text> | | | 95 | <text use-markup=\"true\"> <label>\"<b>$(gettext 'PGPRS MODEM SETUP')</b>\"</label></text> |
| 91 | <text><label> | | | 96 | <text><label>$(gettext \"If your GPRS ISP does not require a username/password, you should leave the defaults. If you do not know your ISP's APN or the phone number to dial for connection, you can exit and run this setup program again later (click the 'connect' icon on the desktop) The default APN, 'icecelular', is correct only for Costa Rica.\")</label></text> |
| 92 | If your GPRS ISP does not require a username/password, you should leave the defaults. If you do not know your ISP's APN or the phone number to dial for connection, you can exit and run this setup program again later (click the 'connect' icon on the desktop) The default APN, \"icecelular\", is correct only for Costa Rica.</label></text> | | | ||
| 93 | <hbox> | 97 | <hbox> | |
| 94 | <text> | 98 | <text> | |
| 95 | <label>Serial Modem Device File:</label> | | | 99 | <label>$(gettext 'Serial Modem Device File:')</label> |
| 96 | </text> | 100 | </text> | |
| 97 | <entry> | 101 | <entry> | |
| 98 | <default>${DEV}</default> | 102 | <default>${DEV}</default> | |
| 99 | <variable>DEV</variable> | 103 | <variable>DEV</variable> | |
| 100 | </entry> | 104 | </entry> | |
| 11 hidden lines | ||||
| 112 | </entry> | 116 | </entry> | |
| 113 | </hbox> | 117 | </hbox> | |
| 114 | 118 | |||
| 115 | <hbox> | 119 | <hbox> | |
| 116 | <text> | 120 | <text> | |
| 117 | <label>Username:</label> | | | 121 | <label>$(gettext 'Username:')</label> |
| 118 | </text> | 122 | </text> | |
| 119 | <entry> | 123 | <entry> | |
| 120 | <default>${USER}</default> | 124 | <default>${USER}</default> | |
| 121 | <variable>USER</variable> | 125 | <variable>USER</variable> | |
| 122 | </entry> | 126 | </entry> | |
| 123 | </hbox> | 127 | </hbox> | |
| 124 | 128 | |||
| 125 | <hbox> | 129 | <hbox> | |
| 126 | <text> | 130 | <text> | |
| 127 | <label>Password:</label> | | | 131 | <label>$(gettext 'Password:')</label> |
| 128 | </text> | 132 | </text> | |
| 129 | <entry> | 133 | <entry> | |
| 130 | <default>${PASS}</default> | 134 | <default>${PASS}</default> | |
| 131 | <variable>PASS</variable> | 135 | <variable>PASS</variable> | |
| 132 | </entry> | 136 | </entry> | |
| 133 | </hbox> | 137 | </hbox> | |
| 134 | 138 | |||
| 135 | <hbox> | 139 | <hbox> | |
| 136 | <text> | 140 | <text> | |
| 137 | <label>Phone number:</label> | | | 141 | <label>$(gettext 'Phone number:')</label> |
| 138 | </text> | 142 | </text> | |
| 139 | <entry> | 143 | <entry> | |
| 140 | <default>${PHONE}</default> | 144 | <default>${PHONE}</default> | |
| 141 | <variable>PHONE</variable> | 145 | <variable>PHONE</variable> | |
| 142 | </entry> | 146 | </entry> | |
| 143 | </hbox> | 147 | </hbox> | |
| 144 | 148 | |||
| 145 | <hbox> | 149 | <hbox> | |
| 146 | <text> | 150 | <text> | |
| 147 | <label>Phone PIN:</label> | | | 151 | <label>$(gettext 'Phone PIN:')</label> |
| 148 | </text> | 152 | </text> | |
| 149 | <entry> | 153 | <entry> | |
| 150 | <default>${PIN}</default> | 154 | <default>${PIN}</default> | |
| 151 | <variable>PIN</variable> | 155 | <variable>PIN</variable> | |
| 152 | </entry> | 156 | </entry> | |
| 154 | 158 | |||
| 155 | <hbox> | 159 | <hbox> | |
| 156 | <button ok></button> | 160 | <button ok></button> | |
| 157 | <button cancel></button> | 161 | <button cancel></button> | |
| 158 | <button> | 162 | <button> | |
| 159 | <label>RE-PROBE MODEMS</label> | | | 163 | <label>$(gettext 'RE-PROBE MODEMS')</label> |
| 160 | </button> | 164 | </button> | |
| 161 | </hbox> | 165 | </hbox> | |
| 162 | </vbox> | 166 | </vbox> | |
| 163 | " | 167 | " | |
| 164 | I=$IFS; IFS="" | 168 | I=$IFS; IFS="" | |
| 165 | for STATEMENTS in $(gtkdialog3 --program=MAIN_DIALOG); do | 169 | for STATEMENTS in $(gtkdialog3 --program=MAIN_DIALOG); do | |
| 166 | eval $STATEMENTS | 170 | eval $STATEMENTS | |
| 167 | done | 171 | done | |
| 168 | IFS=$I | 172 | IFS=$I | |
| 169 | if [ "$EXIT" = "RE-PROBE MODEMS" ]; then | | | 173 | if [ "$EXIT" = "$(gettext 'RE-PROBE MODEMS')" ]; then |
| 170 | continue | 174 | continue | |
| 171 | fi | 175 | fi | |
| 172 | if [ "$EXIT" = "OK" ]; then | 176 | if [ "$EXIT" = "OK" ]; then | |
| 173 | LACK="" | 177 | LACK="" | |
| 174 | if [ "$DEV" = "" -o "$DEV" = "/dev/yourdevice" ]; then | 178 | if [ "$DEV" = "" -o "$DEV" = "/dev/yourdevice" ]; then | |
| 15 hidden lines | ||||
| 190 | if [ "${APN}" = "" ]; then | 194 | if [ "${APN}" = "" ]; then | |
| 191 | LACK="$LACK APN" | 195 | LACK="$LACK APN" | |
| 192 | APN="icecelular" | 196 | APN="icecelular" | |
| 193 | fi | 197 | fi | |
| 194 | if [ "$LACK" != "" ]; then | 198 | if [ "$LACK" != "" ]; then | |
| 195 | xmessage -bg "#ff8080" -center -title "MT-GPRS SETUP" "The following must not be left blank: $LACK" | | | 199 | xmessage -bg "#ff8080" -center -title "$(gettext 'MT-GPRS SETUP')" "$(gettext 'The following must not be left blank:') $LACK" |
| 196 | continue | 200 | continue | |
| 197 | fi | 201 | fi | |
| 198 | wordreplace /etc/ppp/peers/gprsmm "user" "user \"$USER\"" 1 | 202 | wordreplace /etc/ppp/peers/gprsmm "user" "user \"$USER\"" 1 | |
| 199 | wordreplace /etc/ppp/peers/gprsmm "$RGDEV" "$DEV" 1 | 203 | wordreplace /etc/ppp/peers/gprsmm "$RGDEV" "$DEV" 1 | |
| 200 | wordreplace /etc/ppp/pap-secrets "$OLDUSER * $OLDPASS" "$USER * $PASS" 1 | 204 | wordreplace /etc/ppp/pap-secrets "$OLDUSER * $OLDPASS" "$USER * $PASS" 1 | |
| 201 | chmod 600 /etc/ppp/pap-secrets | 205 | chmod 600 /etc/ppp/pap-secrets | |
| 202 | wordreplace /etc/ppp/peers/gprs-connect-chatmm "${RGPHONE}" "ATD${PHONE}" | 206 | wordreplace /etc/ppp/peers/gprs-connect-chatmm "${RGPHONE}" "ATD${PHONE}" | |
| 203 | wordreplace /etc/ppp/peers/gprs-connect-chatmm "$RGAPN" "AT+CGDCONT=1,\"IP\",\"$APN\"" | 207 | wordreplace /etc/ppp/peers/gprs-connect-chatmm "$RGAPN" "AT+CGDCONT=1,\"IP\",\"$APN\"" | |
| 204 | wordreplace /etc/ppp/peers/gprs-connect-chatmm "$RGPIN" "AT+CPIN=\"$PIN\"" | 208 | wordreplace /etc/ppp/peers/gprs-connect-chatmm "$RGPIN" "AT+CPIN=\"$PIN\"" | |
| 205 | chmod 700 /etc/ppp/peers/gprs-connect-chatmm | 209 | chmod 700 /etc/ppp/peers/gprs-connect-chatmm | |
| 206 | xmessage -center -title "PGPRS SETUP" "Connect to the Internet using 'PGPRS Connect' in the 'Network' menu." | | | 210 | xmessage -center -title "$(gettext 'PGPRS SETUP')" "$(gettext \"Connect to the Internet using 'PGPRS Connect' in the 'Network' menu.\")" |
| 207 | fi | 211 | fi | |
| 208 | break | 212 | break | |
| 209 | done | 213 | done | |
Changes to woof-code/kernel-skeleton/lib/modules/all-firmware/pgprs/usr/share/applications/pgprs-connect.desktop
| Old (168433c6c4f8b09f) | New (ef01e8623e60df9b) | |||
|---|---|---|---|---|
| 1 | [Desktop Entry] | 1 | [Desktop Entry] | |
| 2 | Encoding=UTF-8 | 2 | Encoding=UTF-8 | |
| 3 | Name=PGPRS Connect | 3 | Name=PGPRS Connect | |
| > | 4 | Name[ru]=PGPRS Подключить | ||
| 4 | Icon=mini-connect.xpm | 5 | Icon=mini-connect.xpm | |
| 5 | Comment=Connect via GPRS modem | 6 | Comment=Connect via GPRS modem | |
| 6 | Exec=rxvt -title "pgprs-connect PRESS CTRL+C TO DISCONNECT" -e pgprs-connect | 7 | Exec=rxvt -title "pgprs-connect PRESS CTRL+C TO DISCONNECT" -e pgprs-connect | |
| 7 | Terminal=false | 8 | Terminal=false | |
| 8 | Type=Application | 9 | Type=Application | |
| 9 | Categories=Dialup | 10 | Categories=Dialup | |
| 10 | GenericName=Connect via GPRS modem | 11 | GenericName=Connect via GPRS modem | |
Changes to woof-code/kernel-skeleton/lib/modules/all-firmware/pgprs/usr/share/applications/pgprs-setup.desktop
| Old (13fc7a8b72837388) | New (86cbff524e8eb17f) | |||
|---|---|---|---|---|
| 1 | [Desktop Entry] | 1 | [Desktop Entry] | |
| 2 | Encoding=UTF-8 | 2 | Encoding=UTF-8 | |
| 3 | Name=PGPRS Setup | 3 | Name=PGPRS Setup | |
| > | 4 | Name[ru]=PGPRS Настройка | ||
| 4 | Icon=mini-connect.xpm | 5 | Icon=mini-connect.xpm | |
| 5 | Comment=Puppy GPRS Setup | 6 | Comment=Puppy GPRS Setup | |
| 6 | Exec=pgprs-setup | 7 | Exec=pgprs-setup | |
| 7 | Terminal=false | 8 | Terminal=false | |
| 8 | Type=Application | 9 | Type=Application | |
| 9 | Categories=Dialup | 10 | Categories=Dialup | |
| 10 | GenericName=Puppy GPRS Setup | 11 | GenericName=Puppy GPRS Setup | |
Changes to woof-code/rootfs-skeleton/sbin/clean_desk_icons
| Old (2a16c938c336bfc5) | New (ef40aaf19ac5e996) | |||
|---|---|---|---|---|
| 1 | #!/bin/sh | 1 | #!/bin/sh | |
| 2 | #BK called from /root/.xinitrc | 2 | #BK called from /root/.xinitrc | |
| 3 | #v410 remove icons when drives removed. | 3 | #v410 remove icons when drives removed. | |
| 4 | #v410 omit icon if optical drive; defer it to pup_event_frontend_d | 4 | #v410 omit icon if optical drive; defer it to pup_event_frontend_d | |
| 5 | #w014 bugfix, refresh icons if removable drive swapped when PC turned off. | 5 | #w014 bugfix, refresh icons if removable drive swapped when PC turned off. | |
| > | 6 | #120131 rodin.s: internationalized. See warning about "Size:" translation. | ||
| > | 7 | |||
| > | 8 | # i18n gettext | ||
| > | 9 | TEXTDOMAIN=clean_desk_icons | ||
| > | 10 | export TEXTDOMAIN | ||
| > | 11 | . /usr/bin/gettext.sh | ||
| 6 | 12 | |||
| 7 | export LANG=C | 13 | export LANG=C | |
| 8 | . /etc/eventmanager #has RAMSAVEINTERVAL, ICONDESK, ICONPARTITIONS, HOTPLUGNOISY, HOTPLUGON, FLOPPYICON. | 14 | . /etc/eventmanager #has RAMSAVEINTERVAL, ICONDESK, ICONPARTITIONS, HOTPLUGNOISY, HOTPLUGON, FLOPPYICON. | |
| 9 | 15 | |||
| 10 | ePUPPYPIN="`grep -v '/root/.pup_event/drive_' /root/Choices/ROX-Filer/PuppyPin | grep -v '</pinboard>'`" | 16 | ePUPPYPIN="`grep -v '/root/.pup_event/drive_' /root/Choices/ROX-Filer/PuppyPin | grep -v '</pinboard>'`" | |
| 39 hidden lines | ||||
| 50 | if [ "$DRVCUT" = "hd" ];then | 56 | if [ "$DRVCUT" = "hd" ];then | |
| 51 | MEDIACAT="`cat /proc/ide/${ONEDRV}/media`" | 57 | MEDIACAT="`cat /proc/ide/${ONEDRV}/media`" | |
| 52 | [ "$MEDIACAT" = "cdrom" ] && continue #v410 omit icon if optical drive; defer it to pup_event_frontend_d | 58 | [ "$MEDIACAT" = "cdrom" ] && continue #v410 omit icon if optical drive; defer it to pup_event_frontend_d | |
| 53 | fi | 59 | fi | |
| 54 | #w014 user may have swapped removable drives while pc turned off... | 60 | #w014 user may have swapped removable drives while pc turned off... | |
| 55 | DRVMODEL1="`grep -o '<Summary>.*Size:' /root/.pup_event/drive_${ONEDRV}/AppInfo.xml | cut -f 2-20 -d ' ' | rev | cut -f 2-20 -d ' ' | rev`" | | | 61 | |
| | | 62 | LANG="`cat /etc/profile|grep '^LANG='`" | ||
| | | 63 | eval $LANG | ||
| | | 64 | T_size="`gettext \"Size:\"`" #*WARNING* translation must be same as in /sbin/pup_event_frontend_d create_icon_func() | ||
| | | 65 | LANG=C | ||
| | | 66 | |||
| | | 67 | DRVMODEL1="`grep -o '<Summary>.*${T_Size:}' /root/.pup_event/drive_${ONEDRV}/AppInfo.xml | cut -f 2-20 -d ' ' | rev | cut -f 2-20 -d ' ' | rev`" | ||
| 56 | #note, this must be same as done in /sbin/probedisk2... | 68 | #note, this must be same as done in /sbin/probedisk2... | |
| 57 | DRVMODEL2="`cat /sys/block/$ONEDRV/device/vendor | tr -s ' '``cat /sys/block/${ONEDRV}/device/model | tr -s ' '`" | 69 | DRVMODEL2="`cat /sys/block/$ONEDRV/device/vendor | tr -s ' '``cat /sys/block/${ONEDRV}/device/model | tr -s ' '`" | |
| 58 | if [ "$DRVMODEL1" != "$DRVMODEL2" ];then | 70 | if [ "$DRVMODEL1" != "$DRVMODEL2" ];then | |
| 59 | rm -rf /root/.pup_event/drive_${ONEDRV}* 2>/dev/null | 71 | rm -rf /root/.pup_event/drive_${ONEDRV}* 2>/dev/null | |
| 60 | continue | 72 | continue | |
| 9 hidden lines | ||||
| 70 | cat /tmp/pup_event_ok_pin >> /root/Choices/ROX-Filer/PuppyPin | 82 | cat /tmp/pup_event_ok_pin >> /root/Choices/ROX-Filer/PuppyPin | |
| 71 | echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin | 83 | echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin | |
| 72 | #fi | 84 | #fi | |
| 73 | 85 | |||
| 74 | ###END### | 86 | ###END### | |
Changes to woof-code/rootfs-skeleton/sbin/pup_event_frontend_d
| Old (de788f6dc54f462a) | New (c5455cc489d58178) | |||
|---|---|---|---|---|
| 1 | #!/bin/ash | 1 | #!/bin/ash | |
| 2 | #(c) Copyright 2008 Barry Kauler puppylinux.com | 2 | #(c) Copyright 2008 Barry Kauler puppylinux.com | |
| 3 | #2008 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html) | 3 | #2008 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html) | |
| 4 | #this is /sbin/pup_event_frontend_d, created June 2008 for Puppy Linux 4.x, by Barry Kauler. | 4 | #this is /sbin/pup_event_frontend_d, created June 2008 for Puppy Linux 4.x, by Barry Kauler. | |
| 5 | #This script is part of 'pup_event', my (very) light-weight alternative to udev. | 5 | #This script is part of 'pup_event', my (very) light-weight alternative to udev. | |
| 23 hidden lines | ||||
| 29 | #110509 rerwin: full install, use only 1 line of multiline df result, to prevent warnings. | 29 | #110509 rerwin: full install, use only 1 line of multiline df result, to prevent warnings. | |
| 30 | #110513 support sudo for non-root user. /etc/sudoers specifies password not required. | 30 | #110513 support sudo for non-root user. /etc/sudoers specifies password not required. | |
| 31 | #111012 forwarding to old yaf-splash not killable. | 31 | #111012 forwarding to old yaf-splash not killable. | |
| 32 | #111228 added removepreview.sh test (in /usr/local/petget) but probably test for "petget" is already enough. | 32 | #111228 added removepreview.sh test (in /usr/local/petget) but probably test for "petget" is already enough. | |
| 33 | #120129 karl godt: fix ZOMBIES, see http://murga-linux.com/puppy/viewtopic.php?t=71767&start=420. see also rc.shutdown, pmount, drive_all. | 33 | #120129 karl godt: fix ZOMBIES, see http://murga-linux.com/puppy/viewtopic.php?t=71767&start=420. see also rc.shutdown, pmount, drive_all. | |
| > | 34 | #120131 rodin.s: internationalized. BK: note, rodin.s's script different from that in Woof, applied changes line-by-line. | ||
| 34 | 35 | |||
| 35 | [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110513 | 36 | [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110513 | |
| > | 37 | |||
| > | 38 | export TEXTDOMAIN=pup_event_frontend_d | ||
| > | 39 | export OUTPUT_CHARSET=UTF-8 | ||
| > | 40 | . gettext.sh | ||
| 36 | 41 | |||
| 37 | OLDLANG=$LANG #100613 | 42 | OLDLANG=$LANG #100613 | |
| 38 | export LANG=C #w004 | 43 | export LANG=C #w004 | |
| 39 | 44 | |||
| 40 | #v408 when testing k2.6.21.7, no DEVTYPE, had to modify udev rules which causes udevd to | 45 | #v408 when testing k2.6.21.7, no DEVTYPE, had to modify udev rules which causes udevd to | |
| 96 hidden lines | ||||
| 137 | create_appinfo_func() { #needs INFO, DRV_CATEGORY, MOREITEMS, ONEDRVNAME | 142 | create_appinfo_func() { #needs INFO, DRV_CATEGORY, MOREITEMS, ONEDRVNAME | |
| 138 | echo "<?xml version=\"1.0\"?> | 143 | echo "<?xml version=\"1.0\"?> | |
| 139 | <AppInfo> | 144 | <AppInfo> | |
| 140 | <Summary>${INFO}</Summary> | 145 | <Summary>${INFO}</Summary> | |
| 141 | <About> | 146 | <About> | |
| 142 | <Purpose>Drive icons are part of Puppy Event Manager, see System menu</Purpose> | | | 147 | <Purpose>`gettext \"Drive icons are part of Puppy Event Manager, see System menu\"`</Purpose> |
| 143 | <Authors>Barry Kauler LGPL 2008</Authors> | 148 | <Authors>Barry Kauler LGPL 2008</Authors> | |
| 144 | </About> | 149 | </About> | |
| 145 | <AppMenu> | 150 | <AppMenu> | |
| 146 | <Item option=\"pmount_${DRV_CATEGORY}\" icon=\"gtk-harddisk\"><Label>Run Pmount Puppy Drive Mounter</Label></Item><Item option=\"eventmanager\" icon=\"gtk-execute\"><Label>Run Desktop Drive Icon Manager</Label></Item>${MOREITEMS} | 151 | <Item option=\"pmount_${DRV_CATEGORY}\" icon=\"gtk-harddisk\"><Label>Run Pmount Puppy Drive Mounter</Label></Item><Item option=\"eventmanager\" icon=\"gtk-execute\"><Label>Run Desktop Drive Icon Manager</Label></Item>${MOREITEMS} | |
| 147 | </AppMenu> | 152 | </AppMenu> | |
| 195 hidden lines | ||||
| 343 | DRVINFO="`echo "$PROBEPART" | grep "$drvPATTERN" | cut -f 1,2,3 -d '|' | tr '\n' ' '`" | 348 | DRVINFO="`echo "$PROBEPART" | grep "$drvPATTERN" | cut -f 1,2,3 -d '|' | tr '\n' ' '`" | |
| 344 | done | 349 | done | |
| 345 | fi | 350 | fi | |
| 346 | 351 | |||
| 347 | fi | 352 | fi | |
| > | 353 | LANG=$OLDLANG #see restored to C below. | ||
| 348 | for ONEDRVINFO in $DRVINFO | 354 | for ONEDRVINFO in $DRVINFO | |
| 349 | do | 355 | do | |
| 350 | ONEDRVNAME="`echo -n "$ONEDRVINFO" | cut -f 1 -d '|' | cut -f 3 -d '/'`" | 356 | ONEDRVNAME="`echo -n "$ONEDRVINFO" | cut -f 1 -d '|' | cut -f 3 -d '/'`" | |
| 351 | FSTYPE="`echo -n "$ONEDRVINFO" | cut -f 2 -d '|'`" | 357 | FSTYPE="`echo -n "$ONEDRVINFO" | cut -f 2 -d '|'`" | |
| 352 | SIZE=`echo -n "$ONEDRVINFO" | cut -f 3 -d '|'` | 358 | SIZE=`echo -n "$ONEDRVINFO" | cut -f 3 -d '|'` | |
| 4 hidden lines | ||||
| 357 | if [ -e /sys/block/${ONEDRVNAME} ];then | 363 | if [ -e /sys/block/${ONEDRVNAME} ];then | |
| 358 | #device is an entire drive. | 364 | #device is an entire drive. | |
| 359 | SIZE=`cat /sys/block/${ONEDRVNAME}/size` | 365 | SIZE=`cat /sys/block/${ONEDRVNAME}/size` | |
| 360 | SIZE=$(($SIZE/2)) #get KB. | 366 | SIZE=$(($SIZE/2)) #get KB. | |
| 361 | format_size_func #formats SIZE for display. | 367 | format_size_func #formats SIZE for display. | |
| 362 | INFO="Description: ${DRV_DESCRIPTION} Size: ${SIZE}" | | | 368 | INFO="`eval_gettext \"Description: \\\${DRV_DESCRIPTION} Size: \\\${SIZE}\"`" #*WARNING* translate same "Size:" in clean_desk_icons !!! |
| 363 | else | 369 | else | |
| 364 | if [ "$FSTYPE" = "0" -a "$SIZE" = "0" ];then | 370 | if [ "$FSTYPE" = "0" -a "$SIZE" = "0" ];then | |
| 365 | INFO="Puppy drive manager" | | | 371 | INFO="`gettext \"Puppy drive manager\"`" |
| 366 | else | 372 | else | |
| 367 | #pPATTERN=' '"$ONEDRVNAME"'$' | 373 | #pPATTERN=' '"$ONEDRVNAME"'$' | |
| 368 | #SIZE=`grep "$pPATTERN" /proc/partitions | tr -s ' ' | cut -f 4 -d ' '` | 374 | #SIZE=`grep "$pPATTERN" /proc/partitions | tr -s ' ' | cut -f 4 -d ' '` | |
| 369 | format_size_func #formats SIZE for display. | 375 | format_size_func #formats SIZE for display. | |
| 370 | INFO="Filesystem: $FSTYPE Size: $SIZE" | | | 376 | INFO="`eval_gettext \"Filesystem: \\\${FSTYPE} Size: \\\${SIZE}\"`" #*WARNING* translate same "Size:" in clean_desk_icons !!! |
| 371 | fi | 377 | fi | |
| 372 | fi | 378 | fi | |
| 373 | #v424 add item to unmount all partitions... | 379 | #v424 add item to unmount all partitions... | |
| 374 | MOREITEMS="<Item option=\"unmount\" icon=\"gtk-harddisk\"><Label>Unmount ${ONEDRVNAME} (if currently mounted)</Label></Item><Item option=\"unmountall\" icon=\"gtk-harddisk\"><Label>Unmount ALL mounted partitions</Label></Item>" | 380 | MOREITEMS="<Item option=\"unmount\" icon=\"gtk-harddisk\"><Label>Unmount ${ONEDRVNAME} (if currently mounted)</Label></Item><Item option=\"unmountall\" icon=\"gtk-harddisk\"><Label>Unmount ALL mounted partitions</Label></Item>" | |
| 375 | create_appinfo_func #needs INFO, DRV_CATEGORY, MOREITEMS, ONEDRVNAME | 381 | create_appinfo_func #needs INFO, DRV_CATEGORY, MOREITEMS, ONEDRVNAME | |
| 14 hidden lines | ||||
| 390 | mkdir /root/.pup_event/drive_${DRV_NAME} | 396 | mkdir /root/.pup_event/drive_${DRV_NAME} | |
| 391 | cp -af /usr/local/bin/drive_all /root/.pup_event/drive_${DRV_NAME}/AppRun | 397 | cp -af /usr/local/bin/drive_all /root/.pup_event/drive_${DRV_NAME}/AppRun | |
| 392 | SIZE=`cat /sys/block/${DRV_NAME}/size` | 398 | SIZE=`cat /sys/block/${DRV_NAME}/size` | |
| 393 | SIZE=$(($SIZE/2)) #get KB. | 399 | SIZE=$(($SIZE/2)) #get KB. | |
| 394 | format_size_func #formats SIZE for display. | 400 | format_size_func #formats SIZE for display. | |
| 395 | INFO="Description: ${DRV_DESCRIPTION} Size: ${SIZE}" | | | 401 | INFO="`eval_gettext \"Description: \\\${DRV_DESCRIPTION} Size: \\\${SIZE}\"`" |
| 396 | #v424 add item to unmount all mounted partitions... | 402 | #v424 add item to unmount all mounted partitions... | |
| 397 | MOREITEMS="</Item><Item option=\"unmountall\" icon=\"gtk-harddisk\"><Label>Unmount ALL mounted partitions</Label></Item>" | | | 403 | MOREITEMS="</Item><Item option=\"unmountall\" icon=\"gtk-harddisk\"><Label>`gettext \"Unmount ALL mounted partitions\"`</Label></Item>" |
| 398 | ONEDRVNAME="$DRV_NAME" | 404 | ONEDRVNAME="$DRV_NAME" | |
| 399 | create_appinfo_func #needs INFO, DRV_CATEGORY, MOREITEMS, ONEDRVNAME | 405 | create_appinfo_func #needs INFO, DRV_CATEGORY, MOREITEMS, ONEDRVNAME | |
| 400 | fi | 406 | fi | |
| 401 | fi | 407 | fi | |
| > | 408 | LANG=C | ||
| 402 | } | 409 | } | |
| 403 | 410 | |||
| 404 | remove_pinboard_func() { #needs DRV_NAME (name of entire drive) | 411 | remove_pinboard_func() { #needs DRV_NAME (name of entire drive) | |
| 405 | ppPATTERN=' label="'"$DRV_NAME"'.*" ' | 412 | ppPATTERN=' label="'"$DRV_NAME"'.*" ' | |
| 406 | [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" = "" ] && return | 413 | [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" = "" ] && return | |
| 62 hidden lines | ||||
| 469 | [ $PREVSIZEFREEM -eq $SIZEFREEM ] && return | 476 | [ $PREVSIZEFREEM -eq $SIZEFREEM ] && return | |
| 470 | if [ $SIZEFREEM -lt 10 ];then | 477 | if [ $SIZEFREEM -lt 10 ];then | |
| 471 | if [ -d /initrd/pup_rw/lib/modules/all-firmware -a "$ZDRVINIT" = "yes" ];then | 478 | if [ -d /initrd/pup_rw/lib/modules/all-firmware -a "$ZDRVINIT" = "yes" ];then | |
| 472 | delete_func /initrd/pup_rw #save layer is at top, delete mods. | 479 | delete_func /initrd/pup_rw #save layer is at top, delete mods. | |
| 473 | else | 480 | else | |
| 474 | WARNMSG="WARNING: Personal storage getting full, strongly recommend you resize it or delete files!" | | | 481 | LANG=$OLDLANG |
| | | 482 | WARNMSG="$(gettext 'WARNING: Personal storage getting full, strongly recommend you resize it or delete files!')" | ||
| | | 483 | LANG=C | ||
| 475 | fi | 484 | fi | |
| 476 | fi | 485 | fi | |
| 477 | VIRTUALFREEM=$SIZEFREEM | 486 | VIRTUALFREEM=$SIZEFREEM | |
| 478 | if [ "$ZDRVINIT" = "yes" ];then #full set of modules present, moved from initrd. | 487 | if [ "$ZDRVINIT" = "yes" ];then #full set of modules present, moved from initrd. | |
| 479 | if [ -d /initrd/pup_rw/lib/modules/all-firmware ];then #have not yet deleted modules. | 488 | if [ -d /initrd/pup_rw/lib/modules/all-firmware ];then #have not yet deleted modules. | |
| 21 hidden lines | ||||
| 501 | [ $PREVSIZEFREEM -eq $SIZEFREEM -a $PREVSIZETMPM -eq $SIZETMPM ] && return | 510 | [ $PREVSIZEFREEM -eq $SIZEFREEM -a $PREVSIZETMPM -eq $SIZETMPM ] && return | |
| 502 | if [ $SIZEFREEM -lt 10 ];then | 511 | if [ $SIZEFREEM -lt 10 ];then | |
| 503 | if [ -d /initrd/pup_ro1/lib/modules/all-firmware -a "$ZDRVINIT" = "yes" ];then | 512 | if [ -d /initrd/pup_ro1/lib/modules/all-firmware -a "$ZDRVINIT" = "yes" ];then | |
| 504 | delete_func /initrd/pup_ro1 #delete modules in save layer only. | 513 | delete_func /initrd/pup_ro1 #delete modules in save layer only. | |
| 505 | else | 514 | else | |
| 506 | WARNMSG="WARNING: Personal storage file getting full, strongly recommend you resize it or delete files!" | | | 515 | LANG=$OLDLANG |
| | | 516 | WARNMSG="$(gettext 'WARNING: Personal storage file getting full, strongly recommend you resize it or delete files!')" | ||
| | | 517 | LANG=C | ||
| 507 | fi | 518 | fi | |
| 508 | fi | 519 | fi | |
| 509 | if [ $SIZETMPM -lt 5 ];then | 520 | if [ $SIZETMPM -lt 5 ];then | |
| 510 | if [ -d /initrd/pup_rw/lib/modules/all-firmware -a "$ZDRVINIT" = "yes" ];then | 521 | if [ -d /initrd/pup_rw/lib/modules/all-firmware -a "$ZDRVINIT" = "yes" ];then | |
| 511 | delete_func /initrd/pup_rw #delete modules in top tmpfs layer only. | 522 | delete_func /initrd/pup_rw #delete modules in top tmpfs layer only. | |
| 512 | else | 523 | else | |
| 513 | WARNMSG="WARNING: RAM working space only ${SIZETMPM}MB, recommend a reboot which will flush the RAM" | | | 524 | LANG=$OLDLANG |
| | | 525 | WARNMSG="$(gettext 'WARNING: RAM working space only') ${SIZETMPM}$(gettext 'MB, recommend a reboot which will flush the RAM')" | ||
| | | 526 | LANG=C | ||
| 514 | fi | 527 | fi | |
| 515 | fi | 528 | fi | |
| 516 | VIRTUALFREEM=$SIZEFREEM | 529 | VIRTUALFREEM=$SIZEFREEM | |
| 517 | if [ "$ZDRVINIT" = "yes" ];then #full set of modules present at bootup. | 530 | if [ "$ZDRVINIT" = "yes" ];then #full set of modules present at bootup. | |
| 518 | if [ -d /initrd/pup_ro1/lib/modules/all-firmware ];then #have not yet deleted modules. | 531 | if [ -d /initrd/pup_ro1/lib/modules/all-firmware ];then #have not yet deleted modules. | |
| 14 hidden lines | ||||
| 533 | 546 | |||
| 534 | savepuppy_func() { #called every 4 seconds. | 547 | savepuppy_func() { #called every 4 seconds. | |
| 535 | if [ -f /tmp/snapmergepuppyrequest ];then #by request. | 548 | if [ -f /tmp/snapmergepuppyrequest ];then #by request. | |
| 536 | rm -f /tmp/snapmergepuppyrequest | 549 | rm -f /tmp/snapmergepuppyrequest | |
| 537 | #yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -placement top -text "Saving RAM to 'pup_save' file..." & | 550 | #yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -placement top -text "Saving RAM to 'pup_save' file..." & | |
| 538 | yaf-splash -bg orange -placement top -close never -text "Saving RAM to 'pup_save' file..." & | | | 551 | yaf-splash -bg orange -placement top -close never -text "$(gettext "Saving RAM to 'pup_save' file...")" & |
| 539 | YAFPID=$! | 552 | YAFPID=$! | |
| 540 | sync | 553 | sync | |
| 541 | nice -n 19 /usr/sbin/snapmergepuppy | 554 | nice -n 19 /usr/sbin/snapmergepuppy | |
| 542 | kill $YAFPID | 555 | kill $YAFPID | |
| 543 | fi | 556 | fi | |
| 255 hidden lines | ||||
| 799 | 812 | |||
| 800 | done #2 second loop. | 813 | done #2 second loop. | |
| 801 | 814 | |||
| 802 | 815 | |||
| 803 | ###END### | 816 | ###END### | |
Changes to woof-code/rootfs-skeleton/usr/bin/pupdialog
| Old (a3dafad60acc0f49) | New (be523cccf973b4c8) | |||
|---|---|---|---|---|
| 1 | #!/bin/sh | 1 | #!/bin/sh | |
| 2 | #(c) Copyright Barry Kauler Sept. 2011 puppylinux.com | 2 | #(c) Copyright Barry Kauler Sept. 2011 puppylinux.com | |
| 3 | #2011 GPL licence v3 (/usr/share/doc/legal) | 3 | #2011 GPL licence v3 (/usr/share/doc/legal) | |
| 4 | #a simple replacement for 'dialog', for when X is running. can use this instead of Xdialog. | 4 | #a simple replacement for 'dialog', for when X is running. can use this instead of Xdialog. | |
| 5 | #110924 when no window decoration, also do not appear in taskbar. menu dlg to fit in 480 pixel screen vert. fix pupkill. | 5 | #110924 when no window decoration, also do not appear in taskbar. menu dlg to fit in 480 pixel screen vert. fix pupkill. | |
| 6 | #111011 add --checklist dialog, --helpwindow parameter. | 6 | #111011 add --checklist dialog, --helpwindow parameter. | |
| 7 | #111021 increase limit, number commandline items. | 7 | #111021 increase limit, number commandline items. | |
| > | 8 | #120131 rodin.s: adding gettext to help | ||
| > | 9 | |||
| > | 10 | export TEXTDOMAIN=pupdialog | ||
| 8 | 11 | |||
| 9 | #examples passed params: | 12 | #examples passed params: | |
| 10 | # --timeout 90 --extra-button --ok-label "SAVE TO A FILE" --extra-label "SAVE TO ${xPDEV}" --cancel-label "DO NOT SAVE" --yesno "etetetete" 0 0 | 13 | # --timeout 90 --extra-button --ok-label "SAVE TO A FILE" --extra-label "SAVE TO ${xPDEV}" --cancel-label "DO NOT SAVE" --yesno "etetetete" 0 0 | |
| 11 | #accept these, not available in dialog: --background --foreground --countdown "text" | 14 | #accept these, not available in dialog: --background --foreground --countdown "text" | |
| 12 | 15 | |||
| 158 hidden lines | ||||
| 171 | TITLEPARAMS="decorated=\"false\" skip_taskbar_hint=\"true\"" | 174 | TITLEPARAMS="decorated=\"false\" skip_taskbar_hint=\"true\"" | |
| 172 | fi | 175 | fi | |
| 173 | [ "$BACKTITLE" ] && BTTEXT="<text use-markup=\"true\"><label>\"<big><b>${BACKTITLE}</b></big>\"</label></text>" | 176 | [ "$BACKTITLE" ] && BTTEXT="<text use-markup=\"true\"><label>\"<big><b>${BACKTITLE}</b></big>\"</label></text>" | |
| 174 | 177 | |||
| 175 | if [ "$HELPWINDOW" ];then | 178 | if [ "$HELPWINDOW" ];then | |
| 176 | HELPBUTTONXML="<button><label>Help</label><action>${HELPWINDOW} & </action></button>" | | | 179 | HELPBUTTONXML="<button><label>$(gettext 'Help')</label><action>${HELPWINDOW} & </action></button>" |
| 177 | fi | 180 | fi | |
| 178 | 181 | |||
| 179 | export PUP${$}DLG="<window ${TITLEPARAMS}> | 182 | export PUP${$}DLG="<window ${TITLEPARAMS}> | |
| 180 | <vbox> | 183 | <vbox> | |
| 181 | ${BTTEXT} | 184 | ${BTTEXT} | |
| 97 hidden lines | ||||
| 279 | helpbutton) exit 2 ;; | 282 | helpbutton) exit 2 ;; | |
| 280 | *) exit 255 ;; | 283 | *) exit 255 ;; | |
| 281 | esac | 284 | esac | |
| 282 | 285 | |||
| 283 | ###END### | 286 | ###END### | |
Changes to woof-code/rootfs-skeleton/usr/bin/xwin
| Old (0b5a179a67acf2af) | New (56fa61d89d7cd82b) | |||
|---|---|---|---|---|
| 1 | #!/bin/sh | 1 | #!/bin/sh | |
| 2 | #(c) Copyright Barry Kauler 2003,2004,2005,2006,2007 www.puppylinux.com | 2 | #(c) Copyright Barry Kauler 2003,2004,2005,2006,2007 www.puppylinux.com | |
| 3 | #2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html) | 3 | #2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html) | |
| 4 | #v3.90 rawpup, update for Xvesa. | 4 | #v3.90 rawpup, update for Xvesa. | |
| 5 | #v3.94, v3.95, recognise Classmate, EeePC laptops. | 5 | #v3.94, v3.95, recognise Classmate, EeePC laptops. | |
| 19 hidden lines | ||||
| 25 | #110413 variable DISTRO_XORG_AUTO in /etc/DISTRO_SPECS, set in Woof '3builddistro'. | 25 | #110413 variable DISTRO_XORG_AUTO in /etc/DISTRO_SPECS, set in Woof '3builddistro'. | |
| 26 | #110622 fix handling of DISTRO_XORG_AUTO. | 26 | #110622 fix handling of DISTRO_XORG_AUTO. | |
| 27 | #110721 o/p to /dev/null when modprobe modules that are builtin to kernel. | 27 | #110721 o/p to /dev/null when modprobe modules that are builtin to kernel. | |
| 28 | #110804 /etc/profile has fix for double-login. need to output '# ' when exit xwin. | 28 | #110804 /etc/profile has fix for double-login. need to output '# ' when exit xwin. | |
| 29 | #110807 revert 110804 | 29 | #110807 revert 110804 | |
| > | 30 | #120131 rodin.s: internationalized. | ||
| > | 31 | |||
| > | 32 | export TEXTDOMAIN=xwin | ||
| > | 33 | export OUTPUT_CHARSET=UTF-8 | ||
| > | 34 | eval_gettext () { | ||
| > | 35 | local myMESSAGE=$(gettext "$1") | ||
| > | 36 | eval echo \"$myMESSAGE\" | ||
| > | 37 | } | ||
| > | 38 | export LANGORG=$LANG | ||
| 30 | 39 | |||
| 31 | #NUMXWINS=`pidof xwin | wc -w` #w478 | 40 | #NUMXWINS=`pidof xwin | wc -w` #w478 | |
| 32 | #[ $NUMXWINS -gt 1 ] && exit #w478 | 41 | #[ $NUMXWINS -gt 1 ] && exit #w478 | |
| 33 | 42 | |||
| 34 | [ -z $DISPLAY ] || exit #v2.11 from GuestToo. | 43 | [ -z $DISPLAY ] || exit #v2.11 from GuestToo. | |
| 70 hidden lines | ||||
| 105 | #v3.95 recognise more special screens... | 114 | #v3.95 recognise more special screens... | |
| 106 | DMIDECODE="`dmidecode`" | 115 | DMIDECODE="`dmidecode`" | |
| 107 | #recognise EeePC Asus laptop... | 116 | #recognise EeePC Asus laptop... | |
| 108 | [ "`echo "$DMIDECODE" | grep 'Product Name: 701'`" != "" ] && [ "`echo "$DMIDECODE" | grep 'Serial Number: EeePC'`" != "" ] && echo 'timing: 800x480@60' >> /tmp/ddcprobe.txt | 117 | [ "`echo "$DMIDECODE" | grep 'Product Name: 701'`" != "" ] && [ "`echo "$DMIDECODE" | grep 'Serial Number: EeePC'`" != "" ] && echo 'timing: 800x480@60' >> /tmp/ddcprobe.txt | |
| 109 | 118 | |||
| 110 | echo -e '\nIf initialization freezes here, press ctrl-c and type "xorgwizard",\nselect "Xorg", choose monitor type and choose video mode.' #v3.99 | | | 119 | echo -e '\n'$(gettext 'If initialization freezes here, press ctrl-c and type "xorgwizard",\nselect "Xorg", choose monitor type and choose video mode.')'' #v3.99 |
| 111 | grep '^oem:' /tmp/ddcprobe.txt > /tmp/ddcprobeoem.txt #v3.99 current adapter signature | 120 | grep '^oem:' /tmp/ddcprobe.txt > /tmp/ddcprobeoem.txt #v3.99 current adapter signature | |
| 112 | 121 | |||
| 113 | #get too many weird resolutions, maybe better just only allow these... | 122 | #get too many weird resolutions, maybe better just only allow these... | |
| 114 | #want widescreen/non-vesa resolutions only... | 123 | #want widescreen/non-vesa resolutions only... | |
| 115 | VESAMODES="`Xvesa -listmodes 2>&1 | grep '^0x' | tr ':' ' ' | tr -s ' ' | cut -f 1,2 -d ' '`" | 124 | VESAMODES="`Xvesa -listmodes 2>&1 | grep '^0x' | tr ':' ' ' | tr -s ' ' | cut -f 1,2 -d ' '`" | |
| 134 hidden lines | ||||
| 250 | 259 | |||
| 251 | #v2.11 find out if xorg video drvr exists, else use xorg vesa... | 260 | #v2.11 find out if xorg video drvr exists, else use xorg vesa... | |
| 252 | if [ -f /usr/bin/Xorg ];then | 261 | if [ -f /usr/bin/Xorg ];then | |
| 253 | if [ -f /etc/X11/xorg.conf ];then | 262 | if [ -f /etc/X11/xorg.conf ];then | |
| 254 | #find location of video chip drivers... | 263 | #find location of video chip drivers... | |
| 255 | SPECVESA="`find /usr/lib -noleaf -mount -type f -name vesa_drv.so`" | | | 264 | SPECVESA="`find /usr/lib /usr/X11R7/lib -noleaf -mount -type f -name vesa_drv.so 2>/dev/null | grep -v 'backup' | grep -m1 'vesa_drv.so'`" #1201031 bug fix. |
| 256 | if [ "$SPECVESA" ];then | 265 | if [ "$SPECVESA" ];then | |
| 257 | DRVRSPATH="`dirname $SPECVESA`" | 266 | DRVRSPATH="`dirname $SPECVESA`" | |
| 258 | #get current driver... | 267 | #get current driver... | |
| 259 | DRVRCURR="`cat /etc/X11/xorg.conf | grep '#card0driver' | cut -f 2 -d '"'`" #' | 268 | DRVRCURR="`cat /etc/X11/xorg.conf | grep '#card0driver' | cut -f 2 -d '"'`" #' | |
| 260 | if [ "$DRVRCURR" ];then | 269 | if [ "$DRVRCURR" ];then | |
| 261 | #if [ ! -f $DRVRSPATH/${DRVRCURR}_drv.so ];then | 270 | #if [ ! -f $DRVRSPATH/${DRVRCURR}_drv.so ];then | |
| 262 | #one driver is mtx_drv.o hmmm, okay do it this way (pakt)... | 271 | #one driver is mtx_drv.o hmmm, okay do it this way (pakt)... | |
| 263 | ls -1 $DRVRSPATH/* | grep $DRVRCURR >/dev/null | 272 | ls -1 $DRVRSPATH/* | grep $DRVRCURR >/dev/null | |
| 264 | if [ $? -ne 0 ];then | 273 | if [ $? -ne 0 ];then | |
| 265 | APATTERN="s/.*#card0driver/ Driver \"vesa\" #card0driver/g" | 274 | APATTERN="s/.*#card0driver/ Driver \"vesa\" #card0driver/g" | |
| 266 | cat /etc/X11/xorg.conf | sed -e "$APATTERN" > /tmp/xorg.conf.tmp2 | | | 275 | sed -i -e "$APATTERN" /etc/X11/xorg.conf |
| 267 | sync | | | ||
| 268 | cp -f /tmp/xorg.conf.tmp2 /etc/X11/xorg.conf | | | ||
| 269 | fi | 276 | fi | |
| 270 | fi | 277 | fi | |
| 271 | fi | 278 | fi | |
| 272 | fi | 279 | fi | |
| 273 | fi | 280 | fi | |
| 74 hidden lines | ||||
| 348 | # rm -f /etc/.XLOADED #otherwise cannot start X. | 355 | # rm -f /etc/.XLOADED #otherwise cannot start X. | |
| 349 | # exit | 356 | # exit | |
| 350 | # fi | 357 | # fi | |
| 351 | if [ "`cat /etc/.XLOADED`" = "true" ];then | 358 | if [ "`cat /etc/.XLOADED`" = "true" ];then | |
| 352 | #last time X ran, PC hung and had to be rebooted... | 359 | #last time X ran, PC hung and had to be rebooted... | |
| 353 | dialog --timeout 30 --title "Warning" --yes-label "Ignore" --no-label "Commandline" --yesno "X seems to have exited uncleanly the last time you ran Puppy. This is usually because of an improper shutdown (such as a power failure), but may be because something is broken. | | | 360 | dialog --timeout 30 --title "$(gettext 'Warning')" --yes-label "$(gettext 'Ignore')" --no-label "$(gettext 'Commandline')" --yesno "$(gettext 'X seems to have exited uncleanly the last time you ran Puppy. This is usually because of an improper shutdown (such as a power failure), but may be because something is broken.') |
| 354 | 361 | |||
| 355 | If it was just something like a power failure, wait for 30 seconds or choose <Ignore> for normal startup of X... | | | 362 | $(gettext 'If it was just something like a power failure, wait for 30 seconds or choose <Ignore> for normal startup of X...') |
| 356 | 363 | |||
| 357 | If there is a problem, such as X not working, choose <Commandline> to drop out to a commandline. There will then be further advice how to fix X... | | | 364 | $(gettext 'If there is a problem, such as X not working, choose <Commandline> to drop out to a commandline. There will then be further advice how to fix X...') |
| 358 | 365 | |||
| 359 | If undecided, wait 30 seconds for normal startup of X..." 0 0 | | | 366 | $(gettext 'If undecided, wait 30 seconds for normal startup of X...')" 0 0 |
| 360 | if [ ! $? = 1 ]; then | 367 | if [ ! $? = 1 ]; then | |
| 361 | rm /etc/.XLOADED | 368 | rm /etc/.XLOADED | |
| 362 | else | 369 | else | |
| 363 | echo -en "\\033[1;31m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black. | 370 | echo -en "\\033[1;31m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black. | |
| 364 | echo ' | 371 | echo ' | |
| 365 | It seems that last time X ran, the computer hung and you had to reboot. | | | 372 | '$(gettext 'It seems that last time X ran, the computer hung and you had to reboot.')' |
| 366 | Have now dropped down to the commandline. If you want to run the Xorg | | | 373 | '$(gettext 'Have now dropped down to the commandline. If you want to run the Xorg')' |
| 367 | Video Wizard, type "xorgwizard", and after configuring /etc/X11/xorg.conf | | | 374 | '$(gettext 'Video Wizard, type "xorgwizard", and after configuring /etc/X11/xorg.conf')' |
| 368 | (hopefully correctly this time!) type "xwin" to start X.' | | | 375 | '$(gettext '(hopefully correctly this time!) type "xwin" to start X.')'' |
| 369 | echo -e "\\033[0;39m" | 376 | echo -e "\\033[0;39m" | |
| 370 | rm -f /etc/.XLOADED #otherwise cannot start X. | 377 | rm -f /etc/.XLOADED #otherwise cannot start X. | |
| 371 | exit | 378 | exit | |
| 372 | fi | 379 | fi | |
| 373 | fi | 380 | fi | |
| 6 hidden lines | ||||
| 380 | cat /tmp/videomode | grep " 800x600" | 387 | cat /tmp/videomode | grep " 800x600" | |
| 381 | if [ $? -eq 0 ];then #=0 if found. | 388 | if [ $? -eq 0 ];then #=0 if found. | |
| 382 | if [ -e /tmp/Xflag ];then | 389 | if [ -e /tmp/Xflag ];then | |
| 383 | #we have just attempted 800x600x16 and aborted with ctrl-alt-backspace | 390 | #we have just attempted 800x600x16 and aborted with ctrl-alt-backspace | |
| 384 | #so have failed. | 391 | #so have failed. | |
| 385 | echo "An attempt has just been made to run X at 800x600x16 but it has" | | | 392 | echo "$(gettext 'An attempt has just been made to run X at 800x600x16 but it has')" |
| 386 | echo "not worked (or it did but you did not press the OK button in the" | | | 393 | echo "$(gettext 'not worked (or it did but you did not press the OK button in the')" |
| 387 | echo "Video-wizard). It is not feasible to run Puppy at any lower resolution" | | | 394 | echo "$(gettext 'Video-wizard). It is not feasible to run Puppy at any lower resolution')" |
| 388 | echo -e "or color. If you want to try again, type \"xwin\" at the prompt." | | | 395 | echo -e "$(gettext 'or color. If you want to try again, type "xwin" at the prompt.')" |
| 389 | echo "It may be helpful to look in /tmp/xerrs.txt for error messages" | | | 396 | echo "$(gettext 'It may be helpful to look in /tmp/xerrs.txt for error messages')" |
| 390 | rm -f /tmp/videomode | 397 | rm -f /tmp/videomode | |
| 391 | rm -f /tmp/Xflag | 398 | rm -f /tmp/Xflag | |
| 392 | echo -n "0x0111 640x480x16" > /etc/videomode #desparate. | 399 | echo -n "0x0111 640x480x16" > /etc/videomode #desparate. | |
| 393 | exit 0 | 400 | exit 0 | |
| 394 | else | 401 | else | |
| 69 hidden lines | ||||
| 464 | *) XKEYMAP="$xCONSKEYMAP" ;; | 471 | *) XKEYMAP="$xCONSKEYMAP" ;; | |
| 465 | esac | 472 | esac | |
| 466 | if [ -d /etc/X11/xkb/symbols/pc ];then #100127 fallback... | 473 | if [ -d /etc/X11/xkb/symbols/pc ];then #100127 fallback... | |
| 467 | if [ ! -f /etc/X11/xkb/symbols/pc/${XKEYMAP} ];then | 474 | if [ ! -f /etc/X11/xkb/symbols/pc/${XKEYMAP} ];then | |
| 468 | if [ ! -f /etc/X11/xkb/symbols/${XKEYMAP} ];then | 475 | if [ ! -f /etc/X11/xkb/symbols/${XKEYMAP} ];then | |
| 469 | echo "ERROR: Console keyboard `cat /etc/keymap` no matching Xorg layout. PLEASE REPORT TO BK" | | | 476 | echo "$(gettext 'ERROR: Console keyboard') `cat /etc/keymap` $(gettext 'no matching Xorg layout. PLEASE REPORT TO BK')" |
| 470 | XKEYMAP='us' | 477 | XKEYMAP='us' | |
| 471 | fi | 478 | fi | |
| 472 | fi | 479 | fi | |
| 473 | fi | 480 | fi | |
| 474 | currXKEYMAP="`grep '#xkeymap0' /etc/X11/xorg.conf | tr '\t' ' ' | tr -s ' ' | cut -f 4 -d '"'`" #'geany fix | 481 | currXKEYMAP="`grep '#xkeymap0' /etc/X11/xorg.conf | tr '\t' ' ' | tr -s ' ' | cut -f 4 -d '"'`" #'geany fix | |
| 9 hidden lines | ||||
| 484 | #J_Rey had a good idea, flag XLOADED... and set to false on exit. | 491 | #J_Rey had a good idea, flag XLOADED... and set to false on exit. | |
| 485 | #but if PC hangs, XLOADED will still be true, so will know it is broken. | 492 | #but if PC hangs, XLOADED will still be true, so will know it is broken. | |
| 486 | echo -n "true" > /etc/.XLOADED | 493 | echo -n "true" > /etc/.XLOADED | |
| 487 | case $HAVEX in | 494 | case $HAVEX in | |
| 488 | Xvesa) | 495 | Xvesa) | |
| 489 | echo "Starting X with video mode $VIDMODE and mouse $MOUSEDEV..." | | | 496 | echo "`eval_gettext \"Starting X with video mode \\\$VIDMODE and mouse \\\$MOUSEDEV...\"`" |
| 490 | #w479 older Xvesa server may not recognise the '-sp' option... | 497 | #w479 older Xvesa server may not recognise the '-sp' option... | |
| 491 | if [ "`Xvesa -help 2>&1 | grep '^\-sp '`" = "" ];then | 498 | if [ "`Xvesa -help 2>&1 | grep '^\-sp '`" = "" ];then | |
| 492 | SPOPTION='' | 499 | SPOPTION='' | |
| 493 | else | 500 | else | |
| 494 | SPOPTION='-sp /usr/lib/xserver/SecurityPolicy' | 501 | SPOPTION='-sp /usr/lib/xserver/SecurityPolicy' | |
| 10 hidden lines | ||||
| 505 | echo "$VIDSCRN" > /tmp/currentvideomode | 512 | echo "$VIDSCRN" > /tmp/currentvideomode | |
| 506 | /usr/bin/xinit /root/.xinitrc -- -screen $VIDSCRN $XEXTRAOPTIONS -mouse /dev/mouse,$MOUSEBUTTONS -fp /usr/share/X11/fonts/misc/,/usr/share/X11/fonts/TTF/,/usr/share/X11/fonts/Type1/ $SPOPTION > /tmp/xerrs.log 2>&1 | 513 | /usr/bin/xinit /root/.xinitrc -- -screen $VIDSCRN $XEXTRAOPTIONS -mouse /dev/mouse,$MOUSEBUTTONS -fp /usr/share/X11/fonts/misc/,/usr/share/X11/fonts/TTF/,/usr/share/X11/fonts/Type1/ $SPOPTION > /tmp/xerrs.log 2>&1 | |
| 507 | fi | 514 | fi | |
| 508 | ;; | 515 | ;; | |
| 509 | Xfbdev) | 516 | Xfbdev) | |
| 510 | echo "Starting X with Xfbdev Kdrive X server, mouse $MOUSEDEV..." | | | 517 | echo "$(gettext 'Starting X with Xfbdev Kdrive X server, mouse') $MOUSEDEV..." |
| 511 | /usr/bin/xinit /root/.xinitrc -- -mouse /dev/mouse,$MOUSEBUTTONS > /tmp/xerrs.log 2>&1 | 518 | /usr/bin/xinit /root/.xinitrc -- -mouse /dev/mouse,$MOUSEBUTTONS > /tmp/xerrs.log 2>&1 | |
| 512 | ;; | 519 | ;; | |
| 513 | Xi810) #v1.0.7 | 520 | Xi810) #v1.0.7 | |
| 514 | echo "Starting X with Xi810 Kdrive X server, mouse $MOUSEDEV..." | | | 521 | echo "$(gettext 'Starting X with Xi810 Kdrive X server, mouse') $MOUSEDEV..." |
| 515 | #echo "(experimental, currently fixed to 1024x768x16x72 in /usr/bin/xwin)" | 522 | #echo "(experimental, currently fixed to 1024x768x16x72 in /usr/bin/xwin)" | |
| 516 | /usr/bin/xinit /root/.xinitrc -- -screen $VIDSCRN -mouse /dev/mouse,$MOUSEBUTTONS > /tmp/xerrs.log 2>&1 | 523 | /usr/bin/xinit /root/.xinitrc -- -screen $VIDSCRN -mouse /dev/mouse,$MOUSEBUTTONS > /tmp/xerrs.log 2>&1 | |
| 517 | ;; | 524 | ;; | |
| 518 | XF86_SVGA) | 525 | XF86_SVGA) | |
| 519 | echo "Starting X, specs in /etc/X11/XF86Config, startup apps /root/.xinitrc..." | | | 526 | echo "$(gettext 'Starting X, specs in /etc/X11/XF86Config, startup apps /root/.xinitrc...')" |
| 520 | /usr/bin/xinit /root/.xinitrc -- -bpp 16 > /tmp/xerrs.log 2>&1 | 527 | /usr/bin/xinit /root/.xinitrc -- -bpp 16 > /tmp/xerrs.log 2>&1 | |
| 521 | ;; | 528 | ;; | |
| 522 | Xorg) | 529 | Xorg) | |
| 523 | echo "Starting X, specs in /etc/X11/xorg.conf, startup apps /root/.xinitrc..." | | | 530 | echo "$(gettext 'Starting X, specs in /etc/X11/xorg.conf, startup apps /root/.xinitrc...')" |
| 524 | #v2.11 G2 suggested -br for black background instead of checked... | 531 | #v2.11 G2 suggested -br for black background instead of checked... | |
| 525 | #w479 ***AWFUL HACK*** running pup 218, retro k2.6.18.8, my laptop, Xorg hangs | 532 | #w479 ***AWFUL HACK*** running pup 218, retro k2.6.18.8, my laptop, Xorg hangs | |
| 526 | # if have '-nolisten tcp'. until find out why, this workaround... | 533 | # if have '-nolisten tcp'. until find out why, this workaround... | |
| 527 | if [ "$KERNELVER" = "2.6.18.8" ];then | 534 | if [ "$KERNELVER" = "2.6.18.8" ];then | |
| 528 | /usr/bin/xinit /root/.xinitrc -- -br > /tmp/xerrs.log 2>&1 | 535 | /usr/bin/xinit /root/.xinitrc -- -br > /tmp/xerrs.log 2>&1 | |
| 6 hidden lines | ||||
| 535 | ;; | 542 | ;; | |
| 536 | esac | 543 | esac | |
| 537 | echo -n "false" > /etc/.XLOADED #see note above. | 544 | echo -n "false" > /etc/.XLOADED #see note above. | |
| 538 | #...if PC hung, run xorgwizard at next bootup (see further up). | 545 | #...if PC hung, run xorgwizard at next bootup (see further up). | |
| 539 | 546 | |||
| 540 | echo 'Exited from X. Type "xwin [fvwm95|jwm]" to restart X ([ ] mean optional).' | | | 547 | #unicode_start #i18n rodin.s for unicode start after exit from X. ??????what is this?????? |
| 541 | echo '(To shutdown PC type "poweroff", to reboot PC type "reboot")' | | | 548 | echo ''$(gettext 'Exited from X. Type "xwin [fvwm95|jwm]" to restart X ([ ] mean optional).')'' |
| | | 549 | echo ''$(gettext '(To shutdown PC type "poweroff", to reboot PC type "reboot")')'' | ||
| 542 | if [ -f /usr/X11R7/bin/Xfbdev ];then | 550 | if [ -f /usr/X11R7/bin/Xfbdev ];then | |
| 543 | echo '(To run the Xfbdev Framebuffer Wizard, type "framebufferwizard")' | | | 551 | echo ''$(gettext '(To run the Xfbdev Framebuffer Wizard, type "framebufferwizard")')'' |
| 544 | fi | 552 | fi | |
| 545 | if [ "$HAVEX" = "XF86_SVGA" ];then #v1.0.7 | 553 | if [ "$HAVEX" = "XF86_SVGA" ];then #v1.0.7 | |
| 546 | echo -en "\\033[1;31m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black. | 554 | echo -en "\\033[1;31m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black. | |
| 547 | echo 'If X failed to start, type "xf86config" to setup X' | | | 555 | echo ''$(gettext 'If X failed to start, type "xf86config" to setup X')'' |
| 548 | echo ' -- you will need to know type of mouse, keyboard and video chip' | | | 556 | echo ' -- '$(gettext 'you will need to know type of mouse, keyboard and video chip')'' |
| 549 | echo ' -- thix X is for pre-2000 video chips, but many recent chips backwards-compat.' | | | 557 | echo ' -- '$(gettext 'thix X is for pre-2000 video chips, but many recent chips backwards-compat.')'' |
| 550 | echo ' -- accept default save /etc/XF86Config, Puppy will move this to /etc/X11' | | | 558 | echo ' -- '$(gettext 'accept default save /etc/XF86Config, Puppy will move this to /etc/X11')'' |
| 551 | echo ' -- (XF86Config is the configuration file for X and can be edited manually)' | | | 559 | echo ' -- '$(gettext '(XF86Config is the configuration file for X and can be edited manually)')'' |
| 552 | echo -n ' -- LAST RESORT, drop back to Xvesa by typing "ln -sf Xvesa /usr/bin/X"' | | | 560 | echo -n ' -- '$(gettext 'LAST RESORT, drop back to Xvesa by typing "ln -sf Xvesa /usr/bin/X"')'' |
| 553 | echo -e "\\033[0;39m" | 561 | echo -e "\\033[0;39m" | |
| 554 | fi | 562 | fi | |
| 555 | if [ "$HAVEX" = "Xorg" ];then #v1.0.7 | 563 | if [ "$HAVEX" = "Xorg" ];then #v1.0.7 | |
| 556 | echo -en "\\033[1;35m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black. | 564 | echo -en "\\033[1;35m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black. | |
| 557 | echo -n 'If X failed to start, type "xorgwizard" to setup X' | | | 565 | echo -n ''$(gettext 'If X failed to start, type "xorgwizard" to setup X')'' |
| 558 | echo -e "\\033[0;39m" | 566 | echo -e "\\033[0;39m" | |
| 559 | fi | 567 | fi | |
| 560 | 568 | |||
| 561 | ##w477 weird situation. first boot, xvesa, 'Exit to prompt', X restarts. | 569 | ##w477 weird situation. first boot, xvesa, 'Exit to prompt', X restarts. | |
| 562 | ##because there are two instances of xwin running, but I don't see how. | 570 | ##because there are two instances of xwin running, but I don't see how. | |
| 33 hidden lines | ||||
| 596 | fi | 604 | fi | |
| 597 | exec xwin | 605 | exec xwin | |
| 598 | fi | 606 | fi | |
| 599 | 607 | |||
| 600 | #the end# | 608 | #the end# | |
Changes to woof-code/rootfs-skeleton/usr/sbin/xorgwizard
| Old (e3a299aa154abb47) | New (40895193e85097de) | |||
|---|---|---|---|---|
| 1 | #!/bin/sh | 1 | #!/bin/sh | |
| 2 | #(c) Copyright Barry Kauler 2006,2007 www.puppylinux.com | 2 | #(c) Copyright Barry Kauler 2006,2007 www.puppylinux.com | |
| 3 | #2007 Lesser GPL licence v2 (/usr/share/doc/legal/lgpl-2.1.txt) | 3 | #2007 Lesser GPL licence v2 (/usr/share/doc/legal/lgpl-2.1.txt) | |
| 4 | ## Abused by Dougal, Feb 2007 | 4 | ## Abused by Dougal, Feb 2007 | |
| 5 | ## Update: March 16th: fixed "OK" button when testing X | 5 | ## Update: March 16th: fixed "OK" button when testing X | |
| 52 hidden lines | ||||
| 58 | #110911 'drivers-alternate' moved from /usr/lib/xorg/modules/ to /usr/lib/x/. | 58 | #110911 'drivers-alternate' moved from /usr/lib/xorg/modules/ to /usr/lib/x/. | |
| 59 | #110927 fix touchpad setup. | 59 | #110927 fix touchpad setup. | |
| 60 | #111108 Karl Godt: fix for desktop drive icons getting drawn in wrong place after change resolution. | 60 | #111108 Karl Godt: fix for desktop drive icons getting drawn in wrong place after change resolution. | |
| 61 | #120129 jemimah: add Option "SHMConfig" "on". | 61 | #120129 jemimah: add Option "SHMConfig" "on". | |
| 62 | #120130 rodin.s: i18n internationalise script. BK: note, edited all changes manually, as script from rodin.s had some differences. | 62 | #120130 rodin.s: i18n internationalise script. BK: note, edited all changes manually, as script from rodin.s had some differences. | |
| > | 63 | #120131 rodin.s: added a couple more translations. | ||
| 63 | 64 | |||
| 64 | [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110505 | 65 | [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110505 | |
| 65 | 66 | |||
| 66 | export TEXTDOMAIN=xorgwizard | 67 | export TEXTDOMAIN=xorgwizard | |
| 67 | export TEXTDOMAINDIR=/usr/share/locale | < | ||
| 68 | export OUTPUT_CHARSET=UTF-8 | 68 | export OUTPUT_CHARSET=UTF-8 | |
| 69 | . gettext.sh | 69 | . gettext.sh | |
| 70 | export LANGORG=$LANG | < | ||
| 71 | 70 | |||
| 72 | mkdir -p /usr/lib/x/drivers-backup | 71 | mkdir -p /usr/lib/x/drivers-backup | |
| 73 | mkdir -p /var/local/xorg #100902 | 72 | mkdir -p /var/local/xorg #100902 | |
| 74 | 73 | |||
| 75 | alternate_driver_func() { #100401 100708 | 74 | alternate_driver_func() { #100401 100708 | |
| 80 hidden lines | ||||
| 156 | [ -f /usr/lib/x/drivers-alternate/$SUBSTDRV ] && cp -f /usr/lib/x/drivers-alternate/$SUBSTDRV /usr/lib/xorg/modules/drivers/ | 155 | [ -f /usr/lib/x/drivers-alternate/$SUBSTDRV ] && cp -f /usr/lib/x/drivers-alternate/$SUBSTDRV /usr/lib/xorg/modules/drivers/ | |
| 157 | ;; | 156 | ;; | |
| 158 | esac | 157 | esac | |
| 159 | if [ "$REPLACEDDRV" -o "$REPLACEDDRV2" ];then | 158 | if [ "$REPLACEDDRV" -o "$REPLACEDDRV2" ];then | |
| 160 | REPLACEDDRV0="${REPLACEDDRV}${REPLACEDDRV2}" | 159 | REPLACEDDRV0="${REPLACEDDRV}${REPLACEDDRV2}" | |
| 161 | XMSG1="NOTICE: The '${REPLACEDDRV0}' driver has been removed, so when Xorg probes the video hardware, it should instead use '${SUBSTDRV}'. | | | 160 | XMSG1="`eval_gettext \"NOTICE: The '\\\${REPLACEDDRV0}' driver has been removed, so when Xorg probes the video hardware, it should instead use '\\\${SUBSTDRV}'. |
| 162 | 161 | |||
| 163 | TECHNICAL NOTE: '${REPLACEDDRV0}' has been moved to /usr/lib/x/drivers-alternate and if you ever want to manually get it back so that Xorg can use it, move it to /usr/lib/xorg/modules/drivers. Note that there may also be one or more directories inside /usr/lib/x/drivers-alternate with library files needed for the alternate drivers. | | | 162 | TECHNICAL NOTE: '\\\${REPLACEDDRV0}' has been moved to /usr/lib/x/drivers-alternate and if you ever want to manually get it back so that Xorg can use it, move it to /usr/lib/xorg/modules/drivers. Note that there may also be one or more directories inside /usr/lib/x/drivers-alternate with library files needed for the alternate drivers. |
| 164 | 163 | |||
| 165 | Press ENTER key to continue..." | | | 164 | Press ENTER key to continue...\"`" |
| 166 | if [ "$REPLACEDDRV" -a "$REPLACEDDRV2" ];then | 165 | if [ "$REPLACEDDRV" -a "$REPLACEDDRV2" ];then | |
| 167 | XMSG1="NOTICE: The '${REPLACEDDRV}' and '${REPLACEDDRV2}' drivers have been removed, so when Xorg probes the video hardware, it should instead use '${SUBSTDRV}'. | | | 166 | XMSG1="`eval_gettext \"NOTICE: The '\\\${REPLACEDDRV}' and '\\\${REPLACEDDRV2}' drivers have been removed, so when Xorg probes the video hardware, it should instead use '\\\${SUBSTDRV}'. |
| 168 | 167 | |||
| 169 | TECHNICAL NOTE: '${REPLACEDDRV}' and '${REPLACEDDRV2}' have been moved to /usr/lib/x/drivers-alternate and if you ever want to manually get them back so that Xorg can use them, move them to /usr/lib/xorg/modules/drivers. Note that there may also be one or more directories inside /usr/lib/x/drivers-alternate with library files needed for the alternate drivers. | | | 168 | TECHNICAL NOTE: '\\\${REPLACEDDRV}' and '\\\${REPLACEDDRV2}' have been moved to /usr/lib/x/drivers-alternate and if you ever want to manually get them back so that Xorg can use them, move them to /usr/lib/xorg/modules/drivers. Note that there may also be one or more directories inside /usr/lib/x/drivers-alternate with library files needed for the alternate drivers. |
| 170 | 169 | |||
| 171 | Press ENTER key to continue..." | | | 170 | Press ENTER key to continue...\"`" |
| 172 | fi | 171 | fi | |
| 173 | dialog --title "Xorg Video Wizard" --msgbox "${XMSG1}" 0 0 | | | 172 | dialog --title "$(gettext 'Xorg Video Wizard')" --msgbox "${XMSG1}" 0 0 |
| 174 | fi | 173 | fi | |
| 175 | #restart wizard after return. | 174 | #restart wizard after return. | |
| 176 | } #end alternate_driver_func | 175 | } #end alternate_driver_func | |
| 177 | 176 | |||
| 178 | # redirect errors to file (to help debug): | 177 | # redirect errors to file (to help debug): | |
| 1749 hidden lines | ||||
| 1928 | [ -f /tmp/ddcprobeoem.txt ] && rm /tmp/ddcprobeoem.txt #w478 | 1927 | [ -f /tmp/ddcprobeoem.txt ] && rm /tmp/ddcprobeoem.txt #w478 | |
| 1929 | 1928 | |||
| 1930 | echo 'ICONWIPE' > /tmp/pup_event_icon_change_flag #111108 Karl Godt | 1929 | echo 'ICONWIPE' > /tmp/pup_event_icon_change_flag #111108 Karl Godt | |
| 1931 | 1930 | |||
| 1932 | ###END### | 1931 | ###END### | |