File: test-init.sh

package info (click to toggle)
libcap2 1%3A2.75-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,064 kB
  • sloc: ansic: 9,181; sh: 1,138; makefile: 808; cpp: 45; asm: 16
file content (19 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
PATH=/bin

echo -n "Mounting filesystems ... "
mount -t proc proc /proc
mount -t devtmpfs dev /dev
mount -t sysfs sys /sys
mount -t devpts pts /dev/pts
echo done

echo Hello, World
cd /root
if [ -f ./interactive ]; then
    ./quicktest.sh
    sh -i
else
    ./quicktest.sh || ./exit 1
fi
./exit