From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Milasan Date: Wed, 06 May 2015 06:46:35 +0000 Subject: Re: how to do ? minimal udev script for my rc.sysinit ? Message-Id: <20150506084635.7fe9f561@viper.suse.cz> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Tue, 5 May 2015 21:27:38 +0000 "linuxcbon linuxcbon" wrote: > Hi, >=20 > my kernel boots ok and gives the hand to init which runs rc.sysinit. > I am writing a minimal rc.sysinit. > It creates /dev with devtmpfs and now all works except udev. > I need 1 or 2 or 3 lines with udev commands to make it work > and detect and modprobe needed modules. > I don't know the minimal and shortest commands to do this ? > Can you please help me ? >=20 > Thanks in advance. > Linuxcbon > -- > To unsubscribe from this list: send the line "unsubscribe > linux-hotplug" in the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >=20 This might help: # start udev daemon (udevd might be called systemd-udevd) /path/to/udevd --daemon || echo "udev error" >&2 # trigger events /path/to/udevadm trigger --action=ADd || echo "udev trigger error" >&2 /path/to/udevadm trigger --type=3Dsubsystems --action=ADd || echo "udev tri= gger error" >&2 # wait for events to finish /path/to/udevadm settle || echo "udev settle error" >&2 --=20 Robert Milasan L3 Support Engineer SUSE Linux (http://www.suse.com) email: rmilasan@suse.com GPG fingerprint: B6FE F4A8 0FA3 3040 3402 6FE7 2F64 167C 1909 6D1A