File: marionnet-prestart-checks

package info (click to toggle)
marionnet 0.90.6%2Bbzr508-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,532 kB
  • sloc: ml: 18,130; sh: 5,384; xml: 1,152; makefile: 1,003; ansic: 275
file content (24 lines) | stat: -rwxr-xr-x 802 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

FS=$(ls /usr/share/marionnet/filesystems/ | grep -v '\.conf$' | wc -l)
if [ ! \( -d /usr/share/marionnet/filesystems/ -a "$FS" -gt 0 -a -d /usr/share/marionnet/kernels \) ]; then
  cat <<-EOF
  /!\\  No kernels/filesystems for marionnet found!  /!\\
  Marionnet will start with very limited functionality.

  For more information about donwloading kernels and filesystems,
  read /usr/share/doc/marionnet/README.Debian

EOF
fi
if ps -C Xorg | grep -q -- '-nolisten tcp'; then
  cat <<-EOF
  /!\\  Xorg running with -nolisten tcp  /!\\
  It seems that Xorg is running with -nolisten tcp. You will not be able
  to run graphical applications inside Marionnet virtual machines.

  For more information about fixing your Xorg configuration,
  read /usr/share/doc/marionnet/README.Debian

EOF
fi