diff options
Diffstat (limited to 'alpine/cifs.sh')
| -rwxr-xr-x | alpine/cifs.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/alpine/cifs.sh b/alpine/cifs.sh new file mode 100755 index 0000000..ad880c1 --- /dev/null +++ b/alpine/cifs.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Copyright (C) 2025-2026 Maria Lisina +# SPDX-License-Identifier: Apache-2.0 +# +# cifs configuration + +set -e + +cat << EOF >> /etc/fstab +//172.16.0.1/Users/${1} /media/cifs/Windows cifs _netdev,defaults,vers=3.1.1,credentials=/root/.cifs +EOF + +cat << EOF > /root/.cifs +username=${1} +password=${2} +EOF |
