~ubuntu-branches/ubuntu/trusty/ldm/trusty-proposed

« back to all changes in this revision

Viewing changes to rc.d/I01-nbd-checkupdate

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2010-04-04 17:20:56 UTC
  • mfrom: (3.3.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20100404172056-qgiog88fh4yuwaf9
Tags: 2:2.1.1-1
* New upstream version:
  - fatclients: 
    + Unmount removable devices at logoff.
    + Properly mark X sessions as active for ConsoleKit/PolicyKit.
  - ltsp-cluster-info: 
    + Check that getltscfg-cluster.conf exists before including it.
  - Check for NBD_ROOT_PORT instead of NBD_PORT, which was ambiguously
    used in LTSP for both NBD root and NBD swap.

* Add debian/source/format and set to 1.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
if [ -f /var/cache/ltsp/ltsp_config ]; then
3
3
    . /var/cache/ltsp/ltsp_config
4
4
fi
5
 
if [ -z "$NBD_SERVER" ] || [ -z "$NBD_PORT" ]; then
 
5
if [ -z "$NBD_SERVER" ] || [ -z "$NBD_ROOT_PORT" ]; then
6
6
    return
7
7
fi
8
8
 
9
 
nbd-client $NBD_SERVER $NBD_PORT /dev/nbd9
 
9
nbd-client $NBD_SERVER $NBD_ROOT_PORT /dev/nbd9
10
10
NEW=$(dd if=/dev/nbd9 of=/dev/stdout bs=64 count=1 2> /dev/zero | sha1sum -)
11
11
PID=$(nbd-client -c /dev/nbd9)
12
12
nbd-client -d /dev/nbd9