File: rclocal.sh

package info (click to toggle)
finit 4.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,216 kB
  • sloc: ansic: 17,060; sh: 6,281; makefile: 532
file content (16 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Regression test for basic /etc/rc.local functionality
# shellcheck disable=2317,2034
set -eu

RCLOCAL="echo 'KILROY WAS HERE' > /tmp/rclocal"
TEST_DIR=$(dirname "$0")
#DEBUG=1

# shellcheck source=/dev/null
. "$TEST_DIR/lib/setup.sh"

sleep 1
assert_file_contains /tmp/rclocal "KILROY WAS HERE"

exit 0