jitterstop.sh 520 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # 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-dir
  8. #
  9. # jittering-dir: Directory containing "jittering" file.
  10. #
  11. # Copyright (C) 2021 Facebook, Inc.
  12. #
  13. # Authors: Paul E. McKenney <paulmck@kernel.org>
  14. jittering_dir=$1
  15. if test -z "$jittering_dir"
  16. then
  17. echo jitterstop.sh: Missing directory in which to place jittering file.
  18. exit 34
  19. fi
  20. rm -f ${jittering_dir}/jittering
  21. wait