move /etc/smack to /opt/etc/smack if /etc/smack is directory,
and create symlink /etc/smack -> ../opt/etc/smack
Change-Id: I6ceb58f93645fe884d973d04a11da9d1d3ee00cd
Signed-off-by: boseong choi <boseong.choi@samsung.com>
rm -rf /home
ln -snf opt/home /home
+test ! -e /opt/etc/smack && mkdir -p /opt/etc/smack
+test -d /etc/smack && cp -arf /etc/smack/* /opt/etc/smack/
+rm -rf /etc/smack
+ln -snf ../opt/etc/smack /etc/smack
+
build_ts=$(date -u +%s)
build_date=$(date -u --date @$build_ts +%Y%m%d_%H%M%S)
build_time=$(date -u --date @$build_ts +%H:%M:%S)