~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-19 15:28:59 UTC
  • mfrom: (3.3.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20100419152859-s133bph9xnbdubuh
Tags: upstream-2.1.2
ImportĀ upstreamĀ versionĀ 2.1.2

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