File: postinst

package info (click to toggle)
bottlerocket 0.05b3-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 312 kB
  • ctags: 65
  • sloc: ansic: 1,369; sh: 168; makefile: 104; tcl: 92
file content (21 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh -e

# Source debconf library
. /usr/share/debconf/confmodule

if [ "$1" = "configure" ]; then
  db_get bottlerocket/x10_port

  if [ "x$RET" = "x" ]; then
    device="ttyS0"
  fi
  device=${RET##/dev/}

  ln -sf $device /dev/firecracker

  if [ -d /usr/share/bottlerocket/doc ]; then
      find /usr/share/bottlerocket/doc -type d -empty -delete
  fi
fi

#DEBHELPER#