Skip to content

Commit 8730953

Browse files
committed
allow for user to get macaddress using docker image
1 parent 95ce260 commit 8730953

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

data/entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22
set -euo pipefail
33

4+
# Bypass check if user is just looking for the mac address
5+
if [ "$1" == "getmac" ]; then
6+
exec calllogger-getmac
7+
exit 0
8+
fi
9+
410
isMounted () { findmnt -rno SOURCE,TARGET "$1" >/dev/null;} # path or device
511
isDevMounted () { findmnt -rno SOURCE "$1" >/dev/null;} # device only
612
isPathMounted() { findmnt -rno TARGET "$1" >/dev/null;} # path only

0 commit comments

Comments
 (0)