File: postinst

package info (click to toggle)
bottlerocket 0.05b3-17
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 404 kB
  • sloc: ansic: 1,837; sh: 170; makefile: 105; tcl: 92
file content (23 lines) | stat: -rw-r--r-- 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

set -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#