|
|
empeg-preinit
empeg-preinit is a shim for the empeg's standard init binary, allowing easy installation third-party daemons. It is intended to be easy to install itself. It requires Hijack.
empeg-preinit will allow you to run arbitrary commands at empeg startup time. This version adds the ability to also run certain commands after waiting for the music partitions to be mounted. (Specifically, it waits for /empeg/var/config.ini to exist.) This is all accomplished by putting scripts in the /etc/preinit.d directory that is created at the time of empeg-preinit installation. Read the README file that is included in the .tar.gz or .zip file for more information.
To install from Windows:
- Install Hijack
- Download and uncompress empeg-preinit.v7.zip
- Open a command prompt/DOS window
- cd to the directory containing the uncompressed empeg-preinit files
- Type:
ftp -s:install.ftp <empeg-hostname> where <empeg-hostname> is the hostname or IP address of your empeg.
- Close the command prompt window. You're done.
To install from other OSes:
I'll assume that you're familar with the operation of your FTP client. Issue the following commands (or their equivalents) after connecting to the empeg:quote site rw
cd /sbin
bin
put empeg-preinit.v7 hijack
quote site chmod 755 hijack
cd /etc
mkdir preinit.d
quote site ro
To create the /programs0 and /programs1 mount points and filesystems, run:mkdir /programs0
mkdir /programs1
mke2fs /dev/hda2
mke2fs /dev/hdc2
mount /dev/hda2 /programs0
mount /dev/hdc2 /programs1
You can and should leave out the programs1 and hdc2 lines if you only have one drive. Also note that if you run the mke2fs command on a partition that already has a filesystem on it, you will delete all the data on that partition. By default, those partitions don't have any data on them, but if you've already specifically used them for something else, beware.
Download:
empeg-preinit.v7 (just the binary)
empeg-preinit.v7.zip (binary and source plus some auxiliary files)
empeg-preinit.v7.tar.gz (binary and source plus some auxiliary files)
Old downloads:
empeg-preinit.v6 (just the binary)
empeg-preinit.v6.zip (binary and source plus some auxiliary files)
empeg-preinit.v6.tar.gz (binary and source plus some auxiliary files)
empeg-preinit.v4 (just the binary)
empeg-preinit.v4.zip (binary and source plus some auxiliary files)
empeg-preinit.v4.tar.gz (binary and source plus some auxiliary files)
empeg-preinit.v3 (just the binary)
empeg-preinit.v3.zip (binary and source plus some auxiliary files)
empeg-preinit.v3.tar.gz (binary and source plus some auxiliary files)
empeg-preinit.v2 (just the binary)
empeg-preinit.v2.zip (binary and source plus some auxiliary files)
empeg-preinit.v2.tar.gz (binary and source plus some auxiliary files)
empeg-preinit.v1 (just the binary)
empeg-preinit.v1.zip (binary plus some auxiliary files for Windows installs)
empeg-preinit.v1.c (the source code)
Todo:
- Make empeg-preinit automatically create /programs{0,1} mount points and filesystems if they don't already exist
|
|
|