mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
netmount: rework init scripts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
690658cdf3
commit
9317aa38df
6
packages/network/netmount/init.network/43_netmount → packages/network/netmount/init.d/59_netmount
Executable file → Normal file
6
packages/network/netmount/init.network/43_netmount → packages/network/netmount/init.d/59_netmount
Executable file → Normal file
@ -1,5 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
||||
# http://www.openelec.tv
|
||||
@ -24,8 +22,6 @@
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
. /etc/profile
|
||||
|
||||
NETMOUNT_USERCONF="/storage/.config/netmount.conf"
|
||||
|
||||
if [ -f $NETMOUNT_USERCONF ]; then
|
||||
@ -39,9 +35,7 @@ IFS="
|
||||
OPTIONS=`echo $i | awk -F\| '{print $4}' | sed 's/^[ \t]*//;s/[ \t]*$//'`
|
||||
|
||||
progress "... mounting $SHARE to $MOUNTPOINT via $SERVICE ..."
|
||||
|
||||
mkdir -p $MOUNTPOINT
|
||||
|
||||
case "$SERVICE" in
|
||||
cifs|smb|samba)
|
||||
mount.cifs "$SHARE" "$MOUNTPOINT" -o "$OPTIONS" > /dev/null 2>&1
|
Loading…
x
Reference in New Issue
Block a user