# #
#########################################
-- delimiter not delimeter in udev init script
+- bugfixes in shadow package
+- delete cups init scripts created by cups package
+- delimiter not delimeter in udev init script, + mounting of pts/shm
- fixed pkg_dir bug in Create-Binary
- network config via dhcp / dhclient in /usr/sbin (bad?)
- linux config changes, no devfs mount at startup
mount -v -n /dev
mount -v -n /proc ; mount -v -n /sys
-mkdir -p /dev/shm ; mount -v -n /dev/shm
-mkdir -p /dev/pts ; mount -v -n /dev/pts
echo "loading kernel modules and configuring the kernel ..."
. /etc/conf/kernel
}
post_install() {
- cp etc/{limits,login.access} $root/etc &&
+ cp etc/{limits,login.access} $root/etc
sed -e 's%/var/spool/mail%/var/mail%' \
-e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \
- etc/login.defs.linux > $root/etc/login.defs &&
- rm $root/bin/groups &&
- mv $root/bin/sg $prefix/bin &&
- mv $root/bin/vigr $prefix/sbin &&
- mv $prefix/passwd $root/bin &&
+ etc/login.defs.linux > $root/etc/login.defs
+ rm -f $root/bin/groups
+ mv $prefix/bin/vigr $prefix/sbin
+ mv $prefix/bin/{login,passwd} $root/bin
mv $prefix/lib/lib{shadow,misc}.so.0* $root/lib
ln -sf ../../lib/libshadow.so.0 $prefix/lib/libshadow.so
ln -sf ../../lib/libmisc.so.0 $prefix/lib/libmisc.so
ln -snf /proc/self/fd/1 $udev_root/stdout
ln -snf /proc/self/fd/2 $udev_root/stderr
ln -snf /proc/kcore $udev_root/core
-
mkdir $udev_root/pts
+ mount $udev_root/pts
mkdir $udev_root/shm
+ mount $udev_root/shm
}
# delete them when shutting down (not used right now)
del_nodes() {
- rm $udev_root/{fd,stdin,stdout,stderr,core}
+ umount $udev_root/shm
+ umount $udev_root/pts
+ rm -rf $udev_root/{fd,stdin,stdout,stderr,core,pts,shm}
}
# main procedures
add_nodes
$udevd &
echo " done"
- touch /var/lock/subsys/udev
;;
stop)
echo -n "stopping udev ..."
run_udev
del_nodes
echo " done"
- rm /var/lock/subsys/udev
;;
restart)
/etc/init.d/udev stop
confopt="$confopt --disable-ssl --with-logdir=$root/var/cups/log"
confopt="$confopt --with-cups-user=daemon --with-cups-group=daemon"
+
+post_install() {
+ rm -rf $root/etc/init.d/rc0.d
+ rm -rf $root/etc/init.d/*/*cups
+ }