Skip to content

Commit 9d07e5e

Browse files
committed
set-attr: fix support to early-start-at-boot
1 parent 2fea41c commit 9d07e5e

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
### Fixed
10+
- set-attr: attribute early-start-at-boot is now correctly recognized
911
## [0.11.0] 2020-04-19
1012
### Added
1113
- create-base: automatically call freebsd-update when a base is created (#83)

share/pot/set-attribute.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pot-set-attribute()
121121
fi
122122
case $_attr in
123123
"start-at-boot"|\
124+
"early-start-at-boot"|\
124125
"persistent"|\
125126
"no-rc-script"|\
126127
"fdescfs"|\

tests/set-attr1.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,18 @@ test_pot_set_attr_026()
210210
assertEquals "_set_attr arg3" "ON" "$SETATTR_CALL1_ARG3"
211211
}
212212

213+
test_pot_set_attr_027()
214+
{
215+
pot-set-attribute -p test-pot -A early-start-at-boot -V ON
216+
assertEquals "Exit rc" "0" "$?"
217+
assertEquals "Help calls" "0" "$HELP_CALLS"
218+
assertEquals "Error calls" "0" "$ERROR_CALLS"
219+
assertEquals "_is_pot calls" "1" "$ISPOT_CALLS"
220+
assertEquals "_set_attr arg1" "test-pot" "$SETATTR_CALL1_ARG1"
221+
assertEquals "_set_attr arg2" "early-start-at-boot" "$SETATTR_CALL1_ARG2"
222+
assertEquals "_set_attr arg3" "ON" "$SETATTR_CALL1_ARG3"
223+
}
224+
213225
setUp()
214226
{
215227
common_setUp

0 commit comments

Comments
 (0)