mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
integrate-distro.sh: Ongoing improvements
- Set DHCPD_INTERFACE to etc in /etc/sysconfig/dhcpd - Add packages ftp-server-run, openvpn, nfs-kernel-server
This commit is contained in:
parent
218c90addc
commit
a14a6e444c
1 changed files with 15 additions and 3 deletions
|
|
@ -52,6 +52,7 @@ payload_pkgs="
|
|||
courier-authlib-ldap
|
||||
xinetd
|
||||
apache2
|
||||
nfs-kernel-server
|
||||
|
||||
unscd
|
||||
nss_ldap
|
||||
|
|
@ -68,6 +69,7 @@ payload_pkgs="
|
|||
sudo
|
||||
sysconfig
|
||||
glibc-locale
|
||||
openvpn
|
||||
|
||||
xorg-x11
|
||||
xorg-x11-driver-video
|
||||
|
|
@ -109,6 +111,7 @@ payload_pkgs="
|
|||
jux-client-run
|
||||
feedfsd-run
|
||||
snmp-manager-run
|
||||
ftp-server-run
|
||||
bprof-run
|
||||
"
|
||||
# -- functions
|
||||
|
|
@ -615,6 +618,15 @@ insserv_all()
|
|||
done
|
||||
}
|
||||
|
||||
set_sysconf_value()
|
||||
{
|
||||
local file="$1"
|
||||
local key="$2"
|
||||
local value="$3"
|
||||
sed "s/^ *$key *=.*/$key=$value/" $root/$file > $root/$file.tmp
|
||||
mv $root/$file.tmp $root/$file
|
||||
}
|
||||
|
||||
cmd_install()
|
||||
{
|
||||
if true; then
|
||||
|
|
@ -636,6 +648,7 @@ cmd_install()
|
|||
/etc/sysconfig/keyboard \
|
||||
/etc/sysconfig/clock \
|
||||
/etc/openldap/schema/authldap.schema \
|
||||
/etc/bprof.secret \
|
||||
; do
|
||||
install -d -m 755 `dirname $root$c`
|
||||
cp -rp $c $root$c
|
||||
|
|
@ -672,9 +685,8 @@ cmd_install()
|
|||
|
||||
insserv_all
|
||||
|
||||
local boot_conf=$root/etc/sysconfig/boot
|
||||
sed 's/RUN_PARALLEL *=.*/RUN_PARALLEL=no/' $boot_conf > $boot_conf.tmp
|
||||
mv $boot_conf.tmp $boot_conf
|
||||
set_sysconf_value etc/sysconfig/boot RUN_PARALLEL no
|
||||
set_sysconf_value etc/sysconfig/dhcpd DHCPD_INTERFACE eth0 # TODO: bprof this
|
||||
|
||||
cat $root_password_file | chroot $root /usr/bin/passwd --stdin
|
||||
chroot $root /sbin/ldconfig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue