blob: e161afb41cfdb6cd7ca3d550c95887357024339e [file] [log] [blame]
Zdenek Behan9ca79432011-02-06 18:41:10 +01001#!/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 James7c2e2f72012-07-10 10:17:10 -07008. /usr/lib/crosutils/common.sh || exit 1
Zdenek Behan9ca79432011-02-06 18:41:10 +01009
10# Script must be run inside the chroot if not in 'always serve' mode.
11if [[ "$1" != "--archive_dir" ]]; then
12 restart_in_chroot_if_needed "$@"
13fi
14
David Jamesed079b12011-05-17 14:53:15 -070015export DEFAULT_INSTALL_MASK
Zdenek Behan9ca79432011-02-06 18:41:10 +010016
Anand K Mistry70bf12c2019-08-21 13:49:15 +100017# Exec the devserver, replacing this shell process.
18exec /usr/lib/devserver/devserver.py "$@"