File: magic-install.sh

package info (click to toggle)
pmdk 1.13.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,944 kB
  • sloc: ansic: 126,815; sh: 21,543; cpp: 9,413; python: 5,893; makefile: 3,119; perl: 2,294; pascal: 1,442
file content (15 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2017, Intel Corporation
#
# magic-install.sh -- Script for installing magic script
#
set -e

if ! grep -q "File: pmdk" /etc/magic
then
	echo "Appending PMDK magic to /etc/magic"
	cat /usr/share/pmdk/pmdk.magic >> /etc/magic
else
	echo "PMDK magic already exists"
fi