24 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.0+3#4# Remove the "jittering" file, signaling the jitter.sh scripts to stop,5# then wait for them to terminate.6#7# Usage: . jitterstop.sh jittering-dir8#9# jittering-dir: Directory containing "jittering" file.10#11# Copyright (C) 2021 Facebook, Inc.12#13# Authors: Paul E. McKenney <paulmck@kernel.org>14 15jittering_dir=$116if test -z "$jittering_dir"17then18 echo jitterstop.sh: Missing directory in which to place jittering file.19 exit 3420fi21 22rm -f ${jittering_dir}/jittering23wait24