40 lines
775 B
Bash
40 lines
775 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
configure() {
|
|
t=/etc/inittab
|
|
if ! [ -e "$t" ]; then
|
|
echo "Installing default $t"
|
|
cp /usr/share/smf-init/inittab "$t"
|
|
fi
|
|
|
|
i=/etc/default/init
|
|
if ! [ -e "$i" ]; then
|
|
echo "Installing default $i"
|
|
echo "CMASK=022" > "$i"
|
|
fi
|
|
|
|
io=/etc/ioctl.syscon
|
|
if ! [ -e "$io" ]; then
|
|
echo "Installing default $io"
|
|
# XXX stty? on HDD? what on LiveCD? build arch vs host arch?
|
|
# These values are default in illumos
|
|
# See usr/src/cmd/Adm/sun/ioctl.syscon,
|
|
# usr/src/cmd/init/init.c,
|
|
# usr/src/uts/common/io/ttcompat.c
|
|
echo 2502:1805:bd:8a3b:0:3:1c:7f:15:4:0:0:0 > "$io"
|
|
fi
|
|
}
|
|
|
|
|
|
case "$1" in
|
|
configure)
|
|
configure
|
|
;;
|
|
esac
|
|
|
|
exit 0
|
|
|