mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
TEST=Tested this by running it locally on my workstation and calling both stateful_update and memento_updater on a ToT build of chromiumOS on an eee1008HA. Review URL: http://codereview.chromium.org/2283003
19 lines
517 B
Bash
Executable File
19 lines
517 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Start the Dev Server after making sure we are running under a chroot.
|
|
|
|
COMMON_SH="$(dirname "$0")/common.sh"
|
|
. "$COMMON_SH"
|
|
|
|
# Script must be run inside the chroot if not in 'always serve' mode.
|
|
if [[ "$1" != "--archive_dir" ]]
|
|
then
|
|
restart_in_chroot_if_needed $*
|
|
fi
|
|
|
|
cd ${GCLIENT_ROOT}/src/platform/dev && python devserver.py $*
|