1N/A/*************************************************************************** 1N/A * Copyright (C) 2006 David Zeuthen, <david@fubar.dk> 1N/A * This program is free software; you can redistribute it and/or modify 1N/A * it under the terms of the GNU General Public License as published by 1N/A * the Free Software Foundation; either version 2 of the License, or 1N/A * (at your option) any later version. 1N/A * This program is distributed in the hope that it will be useful, 1N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 1N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1N/A * GNU General Public License for more details. 1N/A * You should have received a copy of the GNU General Public License 1N/A * along with this program; if not, write to the Free Software 1N/A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 1N/A **************************************************************************/ 1N/A/* possible values: "Volume", "Storage" */ 1N/A printf (
"Cannot connect to the system bus\n");
1N/A /* read from stdin */ 1N/A /* validate that input from stdin is UTF-8 */ 1N/A /* delete any trailing whitespace options from splitting the string */ 1N/A /* check eject options */ 1N/A /* none supported right now */ 1N/A /* should be either volume or storage */ 1N/A /* first, unmount all volumes */ 1N/A /* only lock around unmount call because hald's /proc/mounts handler 1N/A * will also want to lock the /media/.hal-mtab-lock file for peeking 1N/A /* now attempt the eject */