▁Aust ro - H ung ary . ▁In ▁July ▁of ▁the ▁same ▁year ▁Aust rian ▁troops ▁began ▁the ▁occupation ▁of ▁the ▁two ▁provinces ▁but ▁encountered ▁w ides p read ▁resistance ▁from ▁the ▁Muslim ▁population ▁of ▁Bos nia . ▁ ▁During ▁a ▁campaign ▁that ▁last ed ▁until ▁October ▁ 1 8 7 8 ▁the ▁Aust rian ▁forces ▁suffered ▁cas ual ties ▁of ▁ 9 4 6 ▁dead ▁and ▁ 3 , 9 8 0 ▁wounded . ▁ ▁Although ▁the ▁two ▁provinces ▁constitution ally ▁still ▁belonged ▁to ▁the ▁Ott oman ▁Empire , ▁the ▁Aust rian ▁Imperial ▁Administration ▁began ▁to ▁build ▁up ▁a ▁rud iment ary ▁administrative ▁appar atus ▁based ▁on ▁a ▁reform ▁of ▁the ▁existing ▁systems . ▁There ▁was ▁on going ▁commun al ▁t ension ▁and ▁resistance ▁to ▁H abs burg ▁rule ▁in ▁many ▁rural ▁areas , ▁especially ▁in ▁Herz egov ina ▁and ▁along ▁the ▁eastern ▁border ▁with ▁Mont en eg ro . ▁" The ▁Aust ri ans ▁set ▁up ▁a ▁special ▁local ▁milit ia ▁force ▁there , ▁the ▁' P and urs '; ▁but ▁many ▁of ▁these ▁milit ia ▁men ▁became ▁reb elli ous ▁themselves , ▁and ▁some ▁took ▁to ▁brig and age ." ▁ ▁" In ▁November ▁ 1 8 8 1 ▁the ▁Aust ro - H ung arian ▁government ▁passed ▁a ▁Military ▁Law ▁( We hr ges etz ) ▁impos ing ▁an ▁oblig ation ▁upon ▁all ▁Bos ni ans ▁to ▁serve ▁in ▁the ▁Imperial ▁Army ." ▁This ▁led ▁to ▁w ides p read ▁ri ots ▁through ▁December ▁ 1 8 8 1