diff core/etc/etc.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 4ccc42bf0284
line wrap: on
line diff
--- a/core/etc/etc.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/core/etc/etc.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -29,25 +29,22 @@
             etc/shadow
             etc/shells"
 
-build()
-{
-	install -Dm0600 shadow $DESTDIR/etc/shadow
-	install -Dm0644 fstab $DESTDIR/etc/fstab
-	install -Dm0644 group $DESTDIR/etc/group
-	install -Dm0644 issue $DESTDIR/etc/issue
-	install -Dm0644 passwd $DESTDIR/etc/passwd
-	install -Dm0644 profile $DESTDIR/etc/profile
-	install -Dm0644 securetty $DESTDIR/etc/securetty
-	install -Dm0644 shells $DESTDIR/etc/shells
-	ln -sf /proc/self/mounts $DESTDIR/etc/mtab
+install -Dm0600 shadow $DESTDIR/etc/shadow
+install -Dm0644 fstab $DESTDIR/etc/fstab
+install -Dm0644 group $DESTDIR/etc/group
+install -Dm0644 issue $DESTDIR/etc/issue
+install -Dm0644 passwd $DESTDIR/etc/passwd
+install -Dm0644 profile $DESTDIR/etc/profile
+install -Dm0644 securetty $DESTDIR/etc/securetty
+install -Dm0644 shells $DESTDIR/etc/shells
+ln -sf /proc/self/mounts $DESTDIR/etc/mtab
 
-	# Create /etc/vanilla-release information file.
-	case $(uname -m) in
-	'x86_64')
-		arch="amd64"
-		;;
-	esac
+# Create /etc/vanilla-release information file.
+case $(uname -m) in
+'x86_64')
+	arch="amd64"
+	;;
+esac
 
-	echo "VERSION=${PKGVERSION}" > $DESTDIR/etc/vanilla-release
-	echo "ARCH=$arch" >> $DESTDIR/etc/vanilla-release
-}
+echo "VERSION=${PKGVERSION}" > $DESTDIR/etc/vanilla-release
+echo "ARCH=$arch" >> $DESTDIR/etc/vanilla-release