Zdenek Behan | 9ca7943 | 2011-02-06 18:41:10 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Start the Dev Server after making sure we are running under a chroot. |
David James | 7c2e2f7 | 2012-07-10 10:17:10 -0700 | [diff] [blame] | 8 | . /usr/lib/crosutils/common.sh || exit 1 |
Zdenek Behan | 9ca7943 | 2011-02-06 18:41:10 +0100 | [diff] [blame] | 9 | |
| 10 | # Script must be run inside the chroot if not in 'always serve' mode. |
| 11 | if [[ "$1" != "--archive_dir" ]]; then |
| 12 | restart_in_chroot_if_needed "$@" |
| 13 | fi |
| 14 | |
David James | ed079b1 | 2011-05-17 14:53:15 -0700 | [diff] [blame] | 15 | export DEFAULT_INSTALL_MASK |
Zdenek Behan | 9ca7943 | 2011-02-06 18:41:10 +0100 | [diff] [blame] | 16 | |
Anand K Mistry | 70bf12c | 2019-08-21 13:49:15 +1000 | [diff] [blame] | 17 | # Exec the devserver, replacing this shell process. |
| 18 | exec /usr/lib/devserver/devserver.py "$@" |