#!/bin/sh # we need to have our modprobe.d files with .conf suffix for i in /etc/modprobe.d/*; do # ignore files that does not exist (i.e if modprobe.d is empty) [ -r "$i" ] || continue # ignore files that has an extention case "$i" in *.*) continue;; esac # append extension mv "$i" "$i".conf done # migrate /var/run directory to /run if [ -d /var/run ]; then cp -a /var/run/* /run 2>/dev/null rm -rf /var/run ln -s ../run /var/run fi addgroup -S -g 42 shadow 2>/dev/null exit 0