mountfs verwendet jetzt status_message(). hostname wird korrekt gesetzt
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_cdboot@5606 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
380414212f
commit
d77f5c8ef2
@ -14,4 +14,5 @@ script
|
|||||||
sed -e "s/127\.0\.0\.1.*$/127.0.0.1 localhost ViitorLinux_install/" /etc/hosts >/tmp/hosts
|
sed -e "s/127\.0\.0\.1.*$/127.0.0.1 localhost ViitorLinux_install/" /etc/hosts >/tmp/hosts
|
||||||
mv /tmp/hosts /var/etc/hosts
|
mv /tmp/hosts /var/etc/hosts
|
||||||
fi
|
fi
|
||||||
|
hostname ViitorInstall
|
||||||
end script
|
end script
|
||||||
|
@ -7,6 +7,7 @@ start on stopped checkfs
|
|||||||
|
|
||||||
console output
|
console output
|
||||||
script
|
script
|
||||||
|
source /etc/init/functions
|
||||||
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
||||||
MOUNTPOINT=$i
|
MOUNTPOINT=$i
|
||||||
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
||||||
@ -16,9 +17,8 @@ script
|
|||||||
&& [ ! "$MOUNTPOINT" == "/" ] \
|
&& [ ! "$MOUNTPOINT" == "/" ] \
|
||||||
&& [ ! "$DEVICE" == "none" ]; then
|
&& [ ! "$DEVICE" == "none" ]; then
|
||||||
if [ -d $MOUNTPOINT ]; then
|
if [ -d $MOUNTPOINT ]; then
|
||||||
echo -n "Mounting $MOUNTPOINT"
|
|
||||||
mount $MOUNTPOINT
|
mount $MOUNTPOINT
|
||||||
evaluate_retval
|
status_message "$MOUNTPOINT mounted"
|
||||||
else
|
else
|
||||||
echo "Mountpoint $MOUNTPOINT not existing!"
|
echo "Mountpoint $MOUNTPOINT not existing!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user