From e76dcfd51cf5e1f780383ab6ff12df8d8cc59eed Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 15 Jan 2016 00:05:14 -0500 Subject: cmd/mkinitramfs: New stub of a command --- diff --git a/locale/en_US.sh b/locale/en_US.sh index 53a608f..b33e5ce 100644 --- a/locale/en_US.sh +++ b/locale/en_US.sh @@ -106,6 +106,12 @@ msg_prokit_cmd_installer_pc_summary='install a PC system onto a block device' msg_prokit_cmd_installer_pc_usage='-a -p [-m ] '\ ' ' +# src/cmd/mkinitramfs.sh +msg_prokit_cmd_mkinitramfs_summary='generate an initramfs containing an '\ +'installed system' +msg_prokit_cmd_mkinitramfs_usage='-l -i '\ +'' + # src/profile.sh msg_prokit_profile_not_found='Profile "%s" not found' diff --git a/src/cmd/local.mk b/src/cmd/local.mk index a6dd3bd..700e5ee 100644 --- a/src/cmd/local.mk +++ b/src/cmd/local.mk @@ -5,4 +5,5 @@ prokit_SOURCES += \ src/cmd/shell.sh \ src/cmd/opkg.sh \ src/cmd/build.sh \ - src/cmd/installer-pc.sh + src/cmd/installer-pc.sh \ + src/cmd/mkinitramfs.sh diff --git a/src/cmd/mkinitramfs.sh b/src/cmd/mkinitramfs.sh new file mode 100644 index 0000000..8983f15 --- /dev/null +++ b/src/cmd/mkinitramfs.sh @@ -0,0 +1,32 @@ +# "mkinitramfs" command +# +# Copyright (C) 2016 Patrick "P. J." McDermott +# +# This file is part of the ProteanOS Development Kit. +# +# The ProteanOS Development Kit is free software: you can redistribute +# it and/or modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# The ProteanOS Development Kit is distributed in the hope that it +# will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with the ProteanOS Development Kit. If not, see +# . + +cmd_mkinitramfs_optstring='l:i:' + +cmd_mkinitramfs_main() +{ + : Stub +} + +cmd_mkinitramfs_register() +{ + register_cmd 'mkinitramfs' +} +__init cmd_mkinitramfs_register -- cgit v0.9.1