Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
cd /var/sadm/install
# Remove = signs and all /devices entries--
egrep -v "=|devices" contents > contents.new
# This command might fail stating "to many fields record number XXX" then you will have to vi contents.new, type :xxx and delete all the SUNW entries all we care about is fields 1,4,5, and 6.
awk '{print $1,$4,$5,$6}' contents.new > contents.new2
# Replace all white spaces with :
sed 's/ /:/g/' contents.new2 > contents.new
vi restore_perms
Create Script with the following:
#!/bin/sh
#########################################################
for FILE in `cat /var/sadm/install/contents.new`
do
FNAME=`echo $FILE | awk -F: '{print $1}'`
PERM=`echo $FILE | awk -F: '{print $2}'`
OWNR=`echo $FILE | awk -F: '{print $3}'`
GRP=`echo $FILE | awk -F: '{print $4}'`
echo "chown $OWNR:$GRP $FNAME"
chown $OWNR:$GRP $FNAME
echo "chmod $PERM $FNAME"
chmod $PERM $FNAME
done
rm contents.new
# End
#########################################################
chmod 555 restore_perms
./restore_perms