mirror of
https://github.com/inspec/inspec
synced 2024-11-27 23:20:33 +00:00
18 lines
359 B
Bash
18 lines
359 B
Bash
|
#!/bin/sh
|
||
|
test ! -e /tmp/folder && \
|
||
|
mkdir /tmp/folder
|
||
|
chmod 0567 /tmp/folder
|
||
|
|
||
|
echo -n 'hello world' > /tmp/file
|
||
|
test ! -e /tmp/symlink && \
|
||
|
ln -s /tmp/file /tmp/symlink
|
||
|
chmod 0777 /tmp/symlink
|
||
|
chmod 0765 /tmp/file
|
||
|
|
||
|
test ! -e /tmp/pipe && \
|
||
|
mkfifo /tmp/pipe
|
||
|
|
||
|
test ! -e /tmp/block_device && \
|
||
|
mknod /tmp/block_device b 7 7
|
||
|
chmod 0666 /tmp/block_device
|