Matheus Machado Guilhermino d7c2beffe0 Migrate util-linux-config to Debian
Modified util-linux-config to add support for Debian packaging.

Note: This package should be merged after pam-config and shadow-utils-config since some referenced files are installed by those packages. Added pam-config and shadow-utils-config as Pre-Depends.

Note: Included file "postlogin" on /etc/pam.d since it was referenced and not present.

Test Plan:

PASS: Package installed and ISO built successfully

Story: 2009256
Task: 43748

Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com>
Change-Id: I8e4fc7715db60b600559072cc8c09b97c8c64f22
2021-11-23 06:42:05 -03:00

14 lines
270 B
Bash

#!/bin/sh
set -e
cp /usr/share/starlingx/stx.su /etc/pam.d/su
cp /usr/share/starlingx/stx.login /etc/pam.d/login
cp /usr/share/starlingx/stx.postlogin /etc/pam.d/postlogin
chmod 644 /etc/pam.d/su
chmod 644 /etc/pam.d/login
chmod 644 /etc/pam.d/postlogin
#DEBHELPER#