~ubuntu-branches/debian/squeeze/ltsp/squeeze

« back to all changes in this revision

Viewing changes to client/initramfs/scripts/init-premount/udhcp

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2010-01-27 14:22:23 UTC
  • mfrom: (34.2.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20100127142223-yomxfg5ne6fhkauj
Tags: 5.1.99-1
* New upstream version:
  - Improved speed of group processing code for local apps.
  - Optimized code to handle lts.conf values by reducing the number of binary
    calls and caching some values.
  - ltsp-build-client plugins:
    + Rewrote functions that create sources.list to be more flexible and
      simpler handling of security mirrors.
    + Added option to mount an arbitrary server dir for apt package caching.
  - New NBD proxy binary, which reconnects an NBD client when necessary.
    replaces the old monitor_nbd script.
  - Disabled LTSP specific handling of sound on fat clients.

  - Updated translations:
    + Italian (it), by Vincenzo Campanella.
    + Polish (pl), by Wiktor Wandachowicz.
    + Spanish (es), by José Luis Redrejo Rodríguez.
    + Russian (ru), by Yuri Kozlov (Closes: #565293).
    + German (de), by Wolfgang Schweer (Closes: #565261).
    + Greek (el), by Alkis Georgopoulos.
    + Swedish (sv), by Martin Bagge (Closes: #565198).
    + Portuguese (pt), by Américo Monteiro (Closes: #565190).
    + French (fr), by Stéphane Graber.

  - New translations:
    + Japanese (ja) translation by Hideki Yamane (Closes: #565956).

* ltsp-server: Included example shutdown and restart .desktop files that use
  the new LTSP halt and reboot mechanisms.

* Updated patches:
  - use-test-binary
  - revert-pulseaudio-module-udev-detect

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        autoconf="$ip"
94
94
        ;;
95
95
    *)
96
 
        oldifs="$IFS"
 
96
        local oldifs="${IFS-not set}"
97
97
        IFS=':'
98
98
        read ip tftp router subnet hostname new_interface new_autoconf<<EOF
99
99
$ip
100
100
EOF
101
 
        IFS="$oldifs"
 
101
        test "$oldifs" = "not set" && unset IFS || IFS="$oldifs"
102
102
        # Prefer the interface specified by BOOTIF
103
103
        interface=${interface:-$new_interface}
104
104
        # Provide a way to use both IPAPPEND 3 *and* autoconf=dhcp :-)
198
198
# Converts a decimal subnet mask to the bit count needed for the CIDR notation
199
199
subnet_to_cidr()
200
200
{
201
 
bits=32
202
 
oldifs="$IFS"
 
201
local bits=32
 
202
local oldifs="${IFS-not set}"
203
203
IFS='.'
204
204
for byte in $1; do
205
205
    byte=$((255-$byte))
208
208
        byte=$(($byte/2))
209
209
    done
210
210
done
211
 
IFS="$oldifs"
 
211
test "$oldifs" = "not set" && unset IFS || IFS="$oldifs"
212
212
echo $bits
213
213
}
214
214