File: get-pam-variant.bash

package info (click to toggle)
rust-sudo-rs 0.2.5-5%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 1,848 kB
  • sloc: sh: 160; makefile: 31; ansic: 1
file content (15 lines) | stat: -rwxr-xr-x 216 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

# FIXME read headers to find the actually used variant
case $(uname) in
Linux)
    echo linuxpam
    ;;
FreeBSD)
    echo openpam
    ;;
*)
    echo "Unsupported platform"
    exit 1
    ;;
esac