2001-03-17 04:17:14 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Utility routines.
|
|
|
|
*
|
2004-03-15 13:59:22 +05:30
|
|
|
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
2001-03-17 04:17:14 +05:30
|
|
|
*
|
2006-05-20 00:59:19 +05:30
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
2001-03-17 04:17:14 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2001-04-01 21:31:11 +05:30
|
|
|
#include "libbb.h"
|
2001-03-17 04:17:14 +05:30
|
|
|
|
|
|
|
|
2004-03-15 13:59:22 +05:30
|
|
|
/* Busybox mount uses either /proc/mounts or /etc/mtab to
|
|
|
|
* get the list of currently mounted filesystems */
|
2005-07-30 14:18:10 +05:30
|
|
|
#if defined(CONFIG_FEATURE_MTAB_SUPPORT)
|
|
|
|
const char bb_path_mtab_file[] = "/etc/mtab";
|
2001-03-17 04:17:14 +05:30
|
|
|
#else
|
2003-03-19 14:43:01 +05:30
|
|
|
const char bb_path_mtab_file[] = "/proc/mounts";
|
2001-03-17 04:17:14 +05:30
|
|
|
#endif
|