View Single Post
Posts: 143 | Thanked: 205 times | Joined on Apr 2008
#3
Originally Posted by traysh View Post
postinstall script:
Code:
#!/bin/sh
#

mkdir /usr/share/policy/etc/FasterN9
cp -a /usr/share/policy/etc/noswap/* /usr/share/policy/etc/FasterN9/
rm /usr/share/policy/etc/current
rm /usr/share/policy/etc/FasterN9/syspart.conf
ln -s /opt/FasterN9/config/syspart.conf /usr/share/policy/etc/FasterN9
ln -s /usr/share/policy/etc/FasterN9 /usr/share/policy/etc/current
Maybe always forcing will help to suppress errors, like
Code:
#!/bin/sh
#

rmdir -rf /usr/share/policy/etc/FasterN9
cp -a /usr/share/policy/etc/noswap /usr/share/policy/etc/FasterN9
ln -sf /opt/FasterN9/config/syspart.conf /usr/share/policy/etc/FasterN9/syspart.conf
ln -sf /usr/share/policy/etc/FasterN9 /usr/share/policy/etc/current
Originally Posted by traysh View Post
postrm script:
Code:
#!/bin/sh
#

rm -rf /usr/share/policy/etc/FasterN9
rm /usr/share/policy/etc/current
ln -s /usr/share/policy/etc/noswap /usr/share/policy/etc/current
Code:
#!/bin/sh
#

ln -sf /usr/share/policy/etc/noswap /usr/share/policy/etc/current
rm -rf /usr/share/policy/etc/FasterN9