Страница 1 из 1

Kак деалть авто mount flashk и CD rom

Добавлено: 2009-05-28 20:41:13
norayrx
Kак делать авто mount flashk и CD rom , какгда ставишь диск произошло авто моунт

Re: Kак деалть авто mount flashk и CD rom

Добавлено: 2009-05-29 0:30:41
iZEN
Смотреть в сторону sysutils/hal.
Себя добавить в группу operator.
Файл /usr/local/etc/PolicyKit/PolicyKit.conf:

Код: Выделить всё

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
	<define_admin_auth group="operator" />
	<match action="org.freedesktop.hal.storage.mount-removable">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.storage.mount-fixed">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.storage.eject">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.storage.unmount-others">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.power-management.reboot">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.power-management.shutdown">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.power-management.hibernate">
		<return result="yes" />
	</match>
	<match action="org.freedesktop.hal.power-management.suspend">
		<return result="yes" />
	</match>
</config>
Ну и сделать автозапуск демонов в /etc/rc.conf:

Код: Выделить всё

dbus_enable="YES"
polkitd_enable="YES"
hald_enable="YES"
usbd_enable="YES"