* [PATCH] initscripts: mount and unmount cifs network filesystems
@ 2012-02-24 16:37 Andreas Oberritter
2012-02-24 18:41 ` Saul Wold
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Oberritter @ 2012-02-24 16:37 UTC (permalink / raw)
To: openembedded-core
* Added cifs to mountnfs.sh and umountnfs.sh.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
.../initscripts/initscripts-1.0/mountnfs.sh | 8 +++++++-
.../initscripts/initscripts-1.0/umountnfs.sh | 2 +-
meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
index 859fc9e..82ec7f6 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
@@ -23,6 +23,7 @@ portmap=no
mount_nfs=no
mount_smb=no
mount_ncp=no
+mount_cifs=no
while read device mountpt fstype options
do
case "$device" in
@@ -56,6 +57,10 @@ do
then
mount_ncp=yes
fi
+ if test "$fstype" = cifs
+ then
+ mount_cifs=yes
+ fi
done
exec 0>&1
@@ -70,12 +75,13 @@ then
fi
fi
-if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
+if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
then
echo "Mounting remote filesystems..."
test "$mount_nfs" = yes && mount -a -t nfs
test "$mount_smb" = yes && mount -a -t smbfs
test "$mount_ncp" = yes && mount -a -t ncpfs
+ test "$mount_cifs" = yes && mount -a -t cifs
fi
) < /etc/fstab
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
index 15d1f73..af07540 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
@@ -23,7 +23,7 @@ test -f /etc/fstab && (
#
while read device mountpt fstype options
do
- if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs
+ if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs
then
umount -f $mountpt
fi
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 203c605..b56c55c 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r129"
+PR = "r130"
INHIBIT_DEFAULT_DEPS = "1"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] initscripts: mount and unmount cifs network filesystems
2012-02-24 16:37 [PATCH] initscripts: mount and unmount cifs network filesystems Andreas Oberritter
@ 2012-02-24 18:41 ` Saul Wold
2012-02-24 20:27 ` [PATCH v2] " Andreas Oberritter
0 siblings, 1 reply; 4+ messages in thread
From: Saul Wold @ 2012-02-24 18:41 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 02/24/2012 08:37 AM, Andreas Oberritter wrote:
> * Added cifs to mountnfs.sh and umountnfs.sh.
>
This patch appears to need to be rebased.
Thanks
Sau!
> Signed-off-by: Andreas Oberritter<obi@opendreambox.org>
> ---
> .../initscripts/initscripts-1.0/mountnfs.sh | 8 +++++++-
> .../initscripts/initscripts-1.0/umountnfs.sh | 2 +-
> meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
> 3 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> index 859fc9e..82ec7f6 100755
> --- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> +++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> @@ -23,6 +23,7 @@ portmap=no
> mount_nfs=no
> mount_smb=no
> mount_ncp=no
> +mount_cifs=no
> while read device mountpt fstype options
> do
> case "$device" in
> @@ -56,6 +57,10 @@ do
> then
> mount_ncp=yes
> fi
> + if test "$fstype" = cifs
> + then
> + mount_cifs=yes
> + fi
> done
>
> exec 0>&1
> @@ -70,12 +75,13 @@ then
> fi
> fi
>
> -if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
> +if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
> then
> echo "Mounting remote filesystems..."
> test "$mount_nfs" = yes&& mount -a -t nfs
> test "$mount_smb" = yes&& mount -a -t smbfs
> test "$mount_ncp" = yes&& mount -a -t ncpfs
> + test "$mount_cifs" = yes&& mount -a -t cifs
> fi
>
> )< /etc/fstab
> diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
> index 15d1f73..af07540 100755
> --- a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
> +++ b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
> @@ -23,7 +23,7 @@ test -f /etc/fstab&& (
> #
> while read device mountpt fstype options
> do
> - if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs
> + if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs
> then
> umount -f $mountpt
> fi
> diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
> index 203c605..b56c55c 100644
> --- a/meta/recipes-core/initscripts/initscripts_1.0.bb
> +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
> @@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
> SECTION = "base"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
> -PR = "r129"
> +PR = "r130"
>
> INHIBIT_DEFAULT_DEPS = "1"
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] initscripts: mount and unmount cifs network filesystems
2012-02-24 18:41 ` Saul Wold
@ 2012-02-24 20:27 ` Andreas Oberritter
2012-02-26 1:49 ` Saul Wold
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Oberritter @ 2012-02-24 20:27 UTC (permalink / raw)
To: openembedded-core
* Added cifs to mountnfs.sh and umountnfs.sh.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
* Rebased as requested
.../initscripts/initscripts-1.0/mountnfs.sh | 8 +++++++-
.../initscripts/initscripts-1.0/umountnfs.sh | 2 +-
meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
index 859fc9e..82ec7f6 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
@@ -23,6 +23,7 @@ portmap=no
mount_nfs=no
mount_smb=no
mount_ncp=no
+mount_cifs=no
while read device mountpt fstype options
do
case "$device" in
@@ -56,6 +57,10 @@ do
then
mount_ncp=yes
fi
+ if test "$fstype" = cifs
+ then
+ mount_cifs=yes
+ fi
done
exec 0>&1
@@ -70,12 +75,13 @@ then
fi
fi
-if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
+if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
then
echo "Mounting remote filesystems..."
test "$mount_nfs" = yes && mount -a -t nfs
test "$mount_smb" = yes && mount -a -t smbfs
test "$mount_ncp" = yes && mount -a -t ncpfs
+ test "$mount_cifs" = yes && mount -a -t cifs
fi
) < /etc/fstab
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
index 15d1f73..af07540 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
@@ -23,7 +23,7 @@ test -f /etc/fstab && (
#
while read device mountpt fstype options
do
- if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs
+ if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs
then
umount -f $mountpt
fi
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index b56c55c..e16f19f 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r130"
+PR = "r131"
INHIBIT_DEFAULT_DEPS = "1"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] initscripts: mount and unmount cifs network filesystems
2012-02-24 20:27 ` [PATCH v2] " Andreas Oberritter
@ 2012-02-26 1:49 ` Saul Wold
0 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-02-26 1:49 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 02/24/2012 12:27 PM, Andreas Oberritter wrote:
> * Added cifs to mountnfs.sh and umountnfs.sh.
>
> Signed-off-by: Andreas Oberritter<obi@opendreambox.org>
> ---
> * Rebased as requested
>
> .../initscripts/initscripts-1.0/mountnfs.sh | 8 +++++++-
> .../initscripts/initscripts-1.0/umountnfs.sh | 2 +-
> meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
> 3 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> index 859fc9e..82ec7f6 100755
> --- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> +++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> @@ -23,6 +23,7 @@ portmap=no
> mount_nfs=no
> mount_smb=no
> mount_ncp=no
> +mount_cifs=no
> while read device mountpt fstype options
> do
> case "$device" in
> @@ -56,6 +57,10 @@ do
> then
> mount_ncp=yes
> fi
> + if test "$fstype" = cifs
> + then
> + mount_cifs=yes
> + fi
> done
>
> exec 0>&1
> @@ -70,12 +75,13 @@ then
> fi
> fi
>
> -if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
> +if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
> then
> echo "Mounting remote filesystems..."
> test "$mount_nfs" = yes&& mount -a -t nfs
> test "$mount_smb" = yes&& mount -a -t smbfs
> test "$mount_ncp" = yes&& mount -a -t ncpfs
> + test "$mount_cifs" = yes&& mount -a -t cifs
> fi
>
> )< /etc/fstab
> diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
> index 15d1f73..af07540 100755
> --- a/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
> +++ b/meta/recipes-core/initscripts/initscripts-1.0/umountnfs.sh
> @@ -23,7 +23,7 @@ test -f /etc/fstab&& (
> #
> while read device mountpt fstype options
> do
> - if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs
> + if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs
> then
> umount -f $mountpt
> fi
> diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
> index b56c55c..e16f19f 100644
> --- a/meta/recipes-core/initscripts/initscripts_1.0.bb
> +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
> @@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
> SECTION = "base"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
> -PR = "r130"
> +PR = "r131"
>
> INHIBIT_DEFAULT_DEPS = "1"
>
Merged into OE-core
Thanks
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-26 1:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24 16:37 [PATCH] initscripts: mount and unmount cifs network filesystems Andreas Oberritter
2012-02-24 18:41 ` Saul Wold
2012-02-24 20:27 ` [PATCH v2] " Andreas Oberritter
2012-02-26 1:49 ` Saul Wold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.