File: update-autoinst-disk

package info (click to toggle)
autoinstall 1.0
  • links: PTS
  • area: main
  • in suites: woody
  • size: 356 kB
  • ctags: 41
  • sloc: python: 2,127; perl: 145; sh: 128; makefile: 65
file content (22 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

HOST_ARCH=`dpkg --print-architecture`

if [ "$1" = "--arch" ]; then
    ARCH=$2
    shift 2
else
    ARCH=$HOST_ARCH
fi

if [ ! -f /usr/lib/autoinstall/$ARCH/update-autoinst-disk ]; then
    echo "update-autoinst-disk: unknown architecture $ARCH" >&2
    exit 1
fi

exec /usr/lib/autoinstall/$ARCH/update-autoinst-disk $@

echo "update-autoinst-disk: could not exec" >&2
exit 1

# vim:ai:et:sts=4:sw=4:tw=0: