mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
20 lines
485 B
Bash
Executable File
20 lines
485 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. config/options
|
|
|
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
|
|
|
mkdir -p $INSTALL/usr/bin
|
|
if [ "$DEVTOOLS" = "yes" ]; then
|
|
cp -P $PKG_DIR/scripts/autoupdate.devel $INSTALL/usr/bin/autoupdate
|
|
else
|
|
cp -P $PKG_DIR/scripts/autoupdate.release $INSTALL/usr/bin/autoupdate
|
|
fi
|
|
|
|
mkdir -p $INSTALL/usr/config
|
|
cp -P $PKG_DIR/config/update.conf $INSTALL/usr/config
|
|
|
|
mkdir -p $INSTALL/etc/crontabs
|
|
echo -e "* */6 * * *\t/usr/bin/autoupdate" >> $INSTALL/etc/crontabs/root
|
|
|